// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'get_devices_response_model.dart';

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

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

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

_GetDevicesItemResponseModel _$GetDevicesItemResponseModelFromJson(
  Map<String, dynamic> json,
) => _GetDevicesItemResponseModel(
  identificator: json['identificator'] as String,
  carrierName: json['carrierName'] as String,
  carrierGenre: json['carrierGenre'] as String?,
  carrierBirthday: (json['carrierBirthday'] as num?)?.toInt(),
  carrierWeight: (json['carrierWeight'] as num?)?.toDouble(),
  carrierStepLength: (json['carrierStepLength'] as num?)?.toDouble(),
  phone: json['phone'] as String,
  id: json['id'] as String,
  settings: GetDevicesSettingsResponseModel.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: GetDevicesFlagsResponseModel.fromJson(
    json['flags'] as Map<String, dynamic>,
  ),
);

Map<String, dynamic> _$GetDevicesItemResponseModelToJson(
  _GetDevicesItemResponseModel instance,
) => <String, dynamic>{
  'identificator': instance.identificator,
  'carrierName': instance.carrierName,
  'carrierGenre': instance.carrierGenre,
  'carrierBirthday': instance.carrierBirthday,
  'carrierWeight': instance.carrierWeight,
  'carrierStepLength': instance.carrierStepLength,
  'phone': instance.phone,
  'id': instance.id,
  'settings': instance.settings,
  'protocol': instance.protocol,
  'type': instance.type,
  'connectionServer': instance.connectionServer,
  'createdAt': instance.createdAt,
  'flags': instance.flags,
};

_GetDevicesSettingsResponseModel _$GetDevicesSettingsResponseModelFromJson(
  Map<String, dynamic> json,
) => _GetDevicesSettingsResponseModel(
  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> _$GetDevicesSettingsResponseModelToJson(
  _GetDevicesSettingsResponseModel instance,
) => <String, dynamic>{
  'frequency': instance.frequency,
  'frequencyHeartRate': instance.frequencyHeartRate,
  'timezone': instance.timezone,
  'pedometer': instance.pedometer,
  'language': instance.language,
  'alerts': instance.alerts,
};

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

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