// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'latest_positions_response_model.dart';

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

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

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

_LatestPositionsItemResponseModel _$LatestPositionsItemResponseModelFromJson(
  Map<String, dynamic> json,
) => _LatestPositionsItemResponseModel(
  id: json['id'] as String,
  deviceIdentificator: json['deviceIdentificator'] as String,
  latitude: (json['latitude'] as num).toDouble(),
  longitude: (json['longitude'] as num).toDouble(),
  hpe: (json['hpe'] as num).toInt(),
  ncell: (json['ncell'] as num?)?.toInt(),
  type: (json['type'] as num).toInt(),
  steps: (json['steps'] as num?)?.toInt(),
  address: json['address'] == null
      ? null
      : LatestPositionsAddressResponseModel.fromJson(
          json['address'] as Map<String, dynamic>,
        ),
  createdAt: (json['createdAt'] as num).toInt(),
  positionDate: (json['positionDate'] as num).toInt(),
  positionDateOriginal: (json['positionDateOriginal'] as num?)?.toInt(),
  frequentPlaceName: json['frequentPlaceName'] as String?,
  message: json['message'] as String,
  networks: (json['networks'] as List<dynamic>)
      .map(
        (e) => LatestPositionsNetworkResponseModel.fromJson(
          e as Map<String, dynamic>,
        ),
      )
      .toList(),
  ignore: json['ignore'] as bool,
  suspect: json['suspect'] as bool,
  frequentPlace: json['frequentPlace'] as bool,
);

Map<String, dynamic> _$LatestPositionsItemResponseModelToJson(
  _LatestPositionsItemResponseModel instance,
) => <String, dynamic>{
  'id': instance.id,
  'deviceIdentificator': instance.deviceIdentificator,
  'latitude': instance.latitude,
  'longitude': instance.longitude,
  'hpe': instance.hpe,
  'ncell': instance.ncell,
  'type': instance.type,
  'steps': instance.steps,
  'address': instance.address,
  'createdAt': instance.createdAt,
  'positionDate': instance.positionDate,
  'positionDateOriginal': instance.positionDateOriginal,
  'frequentPlaceName': instance.frequentPlaceName,
  'message': instance.message,
  'networks': instance.networks,
  'ignore': instance.ignore,
  'suspect': instance.suspect,
  'frequentPlace': instance.frequentPlace,
};

_LatestPositionsAddressResponseModel
_$LatestPositionsAddressResponseModelFromJson(Map<String, dynamic> json) =>
    _LatestPositionsAddressResponseModel(
      street: json['street'] as String,
      city: json['city'] as String,
      province: json['province'] as String,
      state: json['state'] as String,
      country: json['country'] as String,
    );

Map<String, dynamic> _$LatestPositionsAddressResponseModelToJson(
  _LatestPositionsAddressResponseModel instance,
) => <String, dynamic>{
  'street': instance.street,
  'city': instance.city,
  'province': instance.province,
  'state': instance.state,
  'country': instance.country,
};

_LatestPositionsNetworkResponseModel
_$LatestPositionsNetworkResponseModelFromJson(Map<String, dynamic> json) =>
    _LatestPositionsNetworkResponseModel(
      SSID: json['SSID'] as String,
      BSSID: json['BSSID'] as String,
      signal: json['signal'] as String,
    );

Map<String, dynamic> _$LatestPositionsNetworkResponseModelToJson(
  _LatestPositionsNetworkResponseModel instance,
) => <String, dynamic>{
  'SSID': instance.SSID,
  'BSSID': instance.BSSID,
  'signal': instance.signal,
};
