AddressModal.fromMap constructor
AddressModal.fromMap(
- Map<String, dynamic> map
)
Implementation
factory AddressModal.fromMap(Map<String, dynamic> map) {
return AddressModal(
province: List<Province>.from(
(map['province']).map<Province>(
(x) => Province.fromMap(x as Map<String, dynamic>),
),
),
zone: List<Zone>.from(
(map['zone']).map<Zone>(
(x) => Zone.fromMap(x as Map<String, dynamic>),
),
),
district: List<District>.from(
(map['district']).map<District>(
(x) => District.fromMap(x as Map<String, dynamic>),
),
),
localLevel: List<LocalLevel>.from(
(map['localLevel']).map<LocalLevel>(
(x) => LocalLevel.fromMap(x as Map<String, dynamic>),
),
),
);
}