UpdateFenceResult.fromMap constructor
UpdateFenceResult.fromMap(- Map map
)
Implementation
UpdateFenceResult.fromMap(Map map)
: assert(map != null),
super.fromMap(map) {
fenceId = map['fenceId'];
fenceName = map['fenceName'];
fenceType = map['fenceType'] == null
? null
: FenceType.values[map['fenceType'] as int];
fenceShape = map['fenceShape'] == null
? null
: FenceShape.values[map['fenceShape'] as int];
district = map['district'];
if (map['districtList'] != null) {
districtList = List<String>();
map['districtList'].forEach((e) {
districtList.add(e as String);
});
}
}