AddressCity.fromJson constructor

AddressCity.fromJson(
  1. Map<String, dynamic> json
)

Implementation

AddressCity.fromJson(Map<String, dynamic> json)
    : id = json['id'] as int?,
      city = json['city'] as String?,
      cityid = json['cityid'] as String?,
      provinceid = json['provinceid'] as String?,
      lng = json['lng'] as String?,
      lat = json['lat'] as String?,
      district = (json['district'] as List?)?.map((dynamic e) => AddressDistrict.fromJson(e as Map<String,dynamic>)).toList();