// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'get_linked_devices_response_model.dart';

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

_GetLinkedDevicesResponseModel _$GetLinkedDevicesResponseModelFromJson(
  Map<String, dynamic> json,
) => _GetLinkedDevicesResponseModel(
  items: (json['items'] as List<dynamic>)
      .map(
        (e) => GetLinkedDevicesItemResponseModel.fromJson(
          e as Map<String, dynamic>,
        ),
      )
      .toList(),
);

Map<String, dynamic> _$GetLinkedDevicesResponseModelToJson(
  _GetLinkedDevicesResponseModel instance,
) => <String, dynamic>{'items': instance.items};

_GetLinkedDevicesItemResponseModel _$GetLinkedDevicesItemResponseModelFromJson(
  Map<String, dynamic> json,
) => _GetLinkedDevicesItemResponseModel(
  identificator: json['identificator'] as String,
  carrierName: json['carrierName'] as String,
  phone: json['phone'] as String,
  id: json['id'] as String,
  settings: GetLinkedDevicesSettingsResponseModel.fromJson(
    json['settings'] as Map<String, dynamic>,
  ),
  protocol: json['protocol'] as String,
  type: json['type'] as String,
  connectionServer: json['connectionServer'] as String,
  createdAt: (json['createdAt'] as num).toInt(),
  flags: GetLinkedDevicesFlagsResponseModel.fromJson(
    json['flags'] as Map<String, dynamic>,
  ),
);

Map<String, dynamic> _$GetLinkedDevicesItemResponseModelToJson(
  _GetLinkedDevicesItemResponseModel instance,
) => <String, dynamic>{
  'identificator': instance.identificator,
  'carrierName': instance.carrierName,
  'phone': instance.phone,
  'id': instance.id,
  'settings': instance.settings,
  'protocol': instance.protocol,
  'type': instance.type,
  'connectionServer': instance.connectionServer,
  'createdAt': instance.createdAt,
  'flags': instance.flags,
};

_GetLinkedDevicesSettingsResponseModel
_$GetLinkedDevicesSettingsResponseModelFromJson(Map<String, dynamic> json) =>
    _GetLinkedDevicesSettingsResponseModel(
      frequency: (json['frequency'] as num).toInt(),
      frequencyHeartRate: (json['frequencyHeartRate'] as num).toInt(),
      timezone: (json['timezone'] as num).toInt(),
      pedometer: json['pedometer'] as bool,
      language: json['language'] as String,
      alerts: (json['alerts'] as List<dynamic>)
          .map((e) => e as String)
          .toList(),
    );

Map<String, dynamic> _$GetLinkedDevicesSettingsResponseModelToJson(
  _GetLinkedDevicesSettingsResponseModel instance,
) => <String, dynamic>{
  'frequency': instance.frequency,
  'frequencyHeartRate': instance.frequencyHeartRate,
  'timezone': instance.timezone,
  'pedometer': instance.pedometer,
  'language': instance.language,
  'alerts': instance.alerts,
};

_GetLinkedDevicesFlagsResponseModel
_$GetLinkedDevicesFlagsResponseModelFromJson(Map<String, dynamic> json) =>
    _GetLinkedDevicesFlagsResponseModel(
      isInOrOut: json['isInOrOut'] as String,
      geofenceId: json['geofenceId'] as String,
      isBatteryLow: json['isBatteryLow'] as bool,
      isDisconnect: json['isDisconnect'] as bool,
    );

Map<String, dynamic> _$GetLinkedDevicesFlagsResponseModelToJson(
  _GetLinkedDevicesFlagsResponseModel instance,
) => <String, dynamic>{
  'isInOrOut': instance.isInOrOut,
  'geofenceId': instance.geofenceId,
  'isBatteryLow': instance.isBatteryLow,
  'isDisconnect': instance.isDisconnect,
};
