fff
1 day ago
2 changed files with 130 additions and 0 deletions
@ -0,0 +1,129 @@ |
|||||||
|
// GENERATED CODE - DO NOT MODIFY BY HAND |
||||||
|
|
||||||
|
part of 'a_map_result.dart'; |
||||||
|
|
||||||
|
// ************************************************************************** |
||||||
|
// JsonSerializableGenerator |
||||||
|
// ************************************************************************** |
||||||
|
|
||||||
|
AMapResult _$AMapResultFromJson(Map<String, dynamic> json) => AMapResult( |
||||||
|
status: json['status'] as String?, |
||||||
|
regeocode: json['regeocode'] == null |
||||||
|
? null |
||||||
|
: Regeocode.fromJson(json['regeocode'] as Map<String, dynamic>), |
||||||
|
info: json['info'] as String?, |
||||||
|
infocode: json['infocode'] as String?, |
||||||
|
); |
||||||
|
|
||||||
|
Map<String, dynamic> _$AMapResultToJson(AMapResult instance) => |
||||||
|
<String, dynamic>{ |
||||||
|
'status': instance.status, |
||||||
|
'regeocode': instance.regeocode?.toJson(), |
||||||
|
'info': instance.info, |
||||||
|
'infocode': instance.infocode, |
||||||
|
}; |
||||||
|
|
||||||
|
Regeocode _$RegeocodeFromJson(Map<String, dynamic> json) => Regeocode( |
||||||
|
addressComponent: json['addressComponent'] == null |
||||||
|
? null |
||||||
|
: AddressComponent.fromJson( |
||||||
|
json['addressComponent'] as Map<String, dynamic>), |
||||||
|
formattedAddress: json['formattedAddress'] as String?, |
||||||
|
); |
||||||
|
|
||||||
|
Map<String, dynamic> _$RegeocodeToJson(Regeocode instance) => <String, dynamic>{ |
||||||
|
'addressComponent': instance.addressComponent?.toJson(), |
||||||
|
'formattedAddress': instance.formattedAddress, |
||||||
|
}; |
||||||
|
|
||||||
|
AddressComponent _$AddressComponentFromJson(Map<String, dynamic> json) => |
||||||
|
AddressComponent( |
||||||
|
city: json['city'] as String?, |
||||||
|
province: json['province'] as String?, |
||||||
|
adcode: json['adcode'] as String?, |
||||||
|
district: json['district'] as String?, |
||||||
|
towncode: json['towncode'] as String?, |
||||||
|
streetNumber: json['streetNumber'] == null |
||||||
|
? null |
||||||
|
: StreetNumber.fromJson(json['streetNumber'] as Map<String, dynamic>), |
||||||
|
country: json['country'] as String?, |
||||||
|
township: json['township'] as String?, |
||||||
|
businessAreas: (json['businessAreas'] as List<dynamic>?) |
||||||
|
?.map((e) => BusinessAreas.fromJson(e as Map<String, dynamic>)) |
||||||
|
.toList(), |
||||||
|
building: json['building'] == null |
||||||
|
? null |
||||||
|
: Building.fromJson(json['building'] as Map<String, dynamic>), |
||||||
|
neighborhood: json['neighborhood'] == null |
||||||
|
? null |
||||||
|
: Neighborhood.fromJson(json['neighborhood'] as Map<String, dynamic>), |
||||||
|
citycode: json['citycode'] as String?, |
||||||
|
); |
||||||
|
|
||||||
|
Map<String, dynamic> _$AddressComponentToJson(AddressComponent instance) => |
||||||
|
<String, dynamic>{ |
||||||
|
'city': instance.city, |
||||||
|
'province': instance.province, |
||||||
|
'adcode': instance.adcode, |
||||||
|
'district': instance.district, |
||||||
|
'towncode': instance.towncode, |
||||||
|
'streetNumber': instance.streetNumber?.toJson(), |
||||||
|
'country': instance.country, |
||||||
|
'township': instance.township, |
||||||
|
'businessAreas': instance.businessAreas?.map((e) => e.toJson()).toList(), |
||||||
|
'building': instance.building?.toJson(), |
||||||
|
'neighborhood': instance.neighborhood?.toJson(), |
||||||
|
'citycode': instance.citycode, |
||||||
|
}; |
||||||
|
|
||||||
|
StreetNumber _$StreetNumberFromJson(Map<String, dynamic> json) => StreetNumber( |
||||||
|
number: json['number'] as String?, |
||||||
|
location: json['location'] as String?, |
||||||
|
direction: json['direction'] as String?, |
||||||
|
distance: json['distance'] as String?, |
||||||
|
street: json['street'] as String?, |
||||||
|
); |
||||||
|
|
||||||
|
Map<String, dynamic> _$StreetNumberToJson(StreetNumber instance) => |
||||||
|
<String, dynamic>{ |
||||||
|
'number': instance.number, |
||||||
|
'location': instance.location, |
||||||
|
'direction': instance.direction, |
||||||
|
'distance': instance.distance, |
||||||
|
'street': instance.street, |
||||||
|
}; |
||||||
|
|
||||||
|
BusinessAreas _$BusinessAreasFromJson(Map<String, dynamic> json) => |
||||||
|
BusinessAreas( |
||||||
|
location: json['location'] as String?, |
||||||
|
name: json['name'] as String?, |
||||||
|
id: json['id'] as String?, |
||||||
|
); |
||||||
|
|
||||||
|
Map<String, dynamic> _$BusinessAreasToJson(BusinessAreas instance) => |
||||||
|
<String, dynamic>{ |
||||||
|
'location': instance.location, |
||||||
|
'name': instance.name, |
||||||
|
'id': instance.id, |
||||||
|
}; |
||||||
|
|
||||||
|
Building _$BuildingFromJson(Map<String, dynamic> json) => Building( |
||||||
|
name: json['name'] as List<dynamic>?, |
||||||
|
type: json['type'] as List<dynamic>?, |
||||||
|
); |
||||||
|
|
||||||
|
Map<String, dynamic> _$BuildingToJson(Building instance) => <String, dynamic>{ |
||||||
|
'name': instance.name, |
||||||
|
'type': instance.type, |
||||||
|
}; |
||||||
|
|
||||||
|
Neighborhood _$NeighborhoodFromJson(Map<String, dynamic> json) => Neighborhood( |
||||||
|
name: json['name'] as List<dynamic>?, |
||||||
|
type: json['type'] as List<dynamic>?, |
||||||
|
); |
||||||
|
|
||||||
|
Map<String, dynamic> _$NeighborhoodToJson(Neighborhood instance) => |
||||||
|
<String, dynamic>{ |
||||||
|
'name': instance.name, |
||||||
|
'type': instance.type, |
||||||
|
}; |
Loading…
Reference in new issue