diff --git a/devtools_options.yaml b/devtools_options.yaml new file mode 100644 index 00000000..7e7e7f67 --- /dev/null +++ b/devtools_options.yaml @@ -0,0 +1 @@ +extensions: diff --git a/lib/data/a_map_result.g.dart b/lib/data/a_map_result.g.dart new file mode 100644 index 00000000..7293a784 --- /dev/null +++ b/lib/data/a_map_result.g.dart @@ -0,0 +1,129 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'a_map_result.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +AMapResult _$AMapResultFromJson(Map json) => AMapResult( + status: json['status'] as String?, + regeocode: json['regeocode'] == null + ? null + : Regeocode.fromJson(json['regeocode'] as Map), + info: json['info'] as String?, + infocode: json['infocode'] as String?, + ); + +Map _$AMapResultToJson(AMapResult instance) => + { + 'status': instance.status, + 'regeocode': instance.regeocode?.toJson(), + 'info': instance.info, + 'infocode': instance.infocode, + }; + +Regeocode _$RegeocodeFromJson(Map json) => Regeocode( + addressComponent: json['addressComponent'] == null + ? null + : AddressComponent.fromJson( + json['addressComponent'] as Map), + formattedAddress: json['formattedAddress'] as String?, + ); + +Map _$RegeocodeToJson(Regeocode instance) => { + 'addressComponent': instance.addressComponent?.toJson(), + 'formattedAddress': instance.formattedAddress, + }; + +AddressComponent _$AddressComponentFromJson(Map 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), + country: json['country'] as String?, + township: json['township'] as String?, + businessAreas: (json['businessAreas'] as List?) + ?.map((e) => BusinessAreas.fromJson(e as Map)) + .toList(), + building: json['building'] == null + ? null + : Building.fromJson(json['building'] as Map), + neighborhood: json['neighborhood'] == null + ? null + : Neighborhood.fromJson(json['neighborhood'] as Map), + citycode: json['citycode'] as String?, + ); + +Map _$AddressComponentToJson(AddressComponent instance) => + { + '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 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 _$StreetNumberToJson(StreetNumber instance) => + { + 'number': instance.number, + 'location': instance.location, + 'direction': instance.direction, + 'distance': instance.distance, + 'street': instance.street, + }; + +BusinessAreas _$BusinessAreasFromJson(Map json) => + BusinessAreas( + location: json['location'] as String?, + name: json['name'] as String?, + id: json['id'] as String?, + ); + +Map _$BusinessAreasToJson(BusinessAreas instance) => + { + 'location': instance.location, + 'name': instance.name, + 'id': instance.id, + }; + +Building _$BuildingFromJson(Map json) => Building( + name: json['name'] as List?, + type: json['type'] as List?, + ); + +Map _$BuildingToJson(Building instance) => { + 'name': instance.name, + 'type': instance.type, + }; + +Neighborhood _$NeighborhoodFromJson(Map json) => Neighborhood( + name: json['name'] as List?, + type: json['type'] as List?, + ); + +Map _$NeighborhoodToJson(Neighborhood instance) => + { + 'name': instance.name, + 'type': instance.type, + };