AddressProvince.fromJson constructor
AddressProvince.fromJson(
- Map<
String, dynamic> json, { - Map<
String, AddressCity> ? cityMap, - Map<
String, AddressDistrict> ? districtMap,
Implementation
AddressProvince.fromJson(Map<String, dynamic> json,{Map<String, AddressCity>? cityMap, Map<String, AddressDistrict>? districtMap})
: id = json['id'] as int?,
provinceId = json['provinceid'] as String?,
province = json['province'] as String?,
lng = json['lng'] as String?,
lat = json['lat'] as String?,
cities = (json['cities'] as List?)?.map((dynamic e) => AddressCity.fromJson(e as Map<String,dynamic>)).toList();