// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'binding_device.dart';

// **************************************************************************
// JsonSerializableGenerator
// **************************************************************************

BindingDevice _$BindingDeviceFromJson(Map<String, dynamic> json) =>
    BindingDevice(
      deviceUid: json['deviceUid'] as String? ?? '',
      name: json['alias'] as String? ?? json['deviceUid'] as String? ?? '',
      online: json['online'] as bool? ?? false,
      authType: json['authType'] as String? ?? 'NONE',
      lastSeen: json['lastSeen'] as int?,
    );

Map<String, dynamic> _$BindingDeviceToJson(BindingDevice instance) =>
    <String, dynamic>{
      'deviceUid': instance.deviceUid,
      'alias': instance.name,
      'online': instance.online,
      'authType': instance.authType,
      'lastSeen': instance.lastSeen,
    };
