AddressProvince.fromJson constructor

AddressProvince.fromJson(
  1. Map<String, dynamic> json, {
  2. Map<String, AddressCity>? cityMap,
  3. 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();