82 lines
2.9 KiB
Dart
82 lines
2.9 KiB
Dart
// GENERATED CODE - DO NOT MODIFY BY HAND
|
|
|
|
part of 'address.dart';
|
|
|
|
// **************************************************************************
|
|
// JsonSerializableGenerator
|
|
// **************************************************************************
|
|
|
|
_Address _$AddressFromJson(Map<String, dynamic> json) => _Address(
|
|
road: json['road'] as String?,
|
|
neighbourhood: json['neighbourhood'] as String?,
|
|
suburb: json['suburb'] as String?,
|
|
state: json['state'] as String?,
|
|
borough: json['borough'] as String?,
|
|
city: json['city'] as String?,
|
|
district: json['district'] as String?,
|
|
county: json['county'] as String?,
|
|
province: json['province'] as String?,
|
|
ISO3166_2_lvl4: json['i_s_o3166_2_lvl4'] as String?,
|
|
postcode: json['postcode'] as String?,
|
|
country: json['country'] as String?,
|
|
country_code: json['country_code'] as String?,
|
|
);
|
|
|
|
Map<String, dynamic> _$AddressToJson(_Address instance) => <String, dynamic>{
|
|
'road': instance.road,
|
|
'neighbourhood': instance.neighbourhood,
|
|
'suburb': instance.suburb,
|
|
'state': instance.state,
|
|
'borough': instance.borough,
|
|
'city': instance.city,
|
|
'district': instance.district,
|
|
'county': instance.county,
|
|
'province': instance.province,
|
|
'i_s_o3166_2_lvl4': instance.ISO3166_2_lvl4,
|
|
'postcode': instance.postcode,
|
|
'country': instance.country,
|
|
'country_code': instance.country_code,
|
|
};
|
|
|
|
_LocationDetails _$LocationDetailsFromJson(Map<String, dynamic> json) =>
|
|
_LocationDetails(
|
|
place_id: (json['place_id'] as num?)?.toInt(),
|
|
licence: json['licence'] as String?,
|
|
osm_type: json['osm_type'] as String?,
|
|
osm_id: (json['osm_id'] as num?)?.toInt(),
|
|
lat: json['lat'] as String?,
|
|
lon: json['lon'] as String?,
|
|
class_: json['class_'] as String?,
|
|
type: json['type'] as String?,
|
|
place_rank: (json['place_rank'] as num?)?.toInt(),
|
|
importance: (json['importance'] as num?)?.toDouble(),
|
|
addresstype: json['addresstype'] as String?,
|
|
name: json['name'] as String?,
|
|
display_name: json['display_name'] as String?,
|
|
address: json['address'] == null
|
|
? null
|
|
: Address.fromJson(json['address'] as Map<String, dynamic>),
|
|
boundingbox: (json['boundingbox'] as List<dynamic>?)
|
|
?.map((e) => e as String)
|
|
.toList(),
|
|
);
|
|
|
|
Map<String, dynamic> _$LocationDetailsToJson(_LocationDetails instance) =>
|
|
<String, dynamic>{
|
|
'place_id': instance.place_id,
|
|
'licence': instance.licence,
|
|
'osm_type': instance.osm_type,
|
|
'osm_id': instance.osm_id,
|
|
'lat': instance.lat,
|
|
'lon': instance.lon,
|
|
'class_': instance.class_,
|
|
'type': instance.type,
|
|
'place_rank': instance.place_rank,
|
|
'importance': instance.importance,
|
|
'addresstype': instance.addresstype,
|
|
'name': instance.name,
|
|
'display_name': instance.display_name,
|
|
'address': instance.address,
|
|
'boundingbox': instance.boundingbox,
|
|
};
|