DistrictFence.fromMap constructor

DistrictFence.fromMap(
  1. Map map
)

Implementation

DistrictFence.fromMap(Map map)
    : assert(map != null),
      super.fromMap(map) {
  keyword = map['keyword'];
  district = map['district'];
  if (map['coordType'] != null) {
    int value = map['coordType'] as int;
    if (value >= 0 && value <= 2) {
      coordType = CoordType.values[value];
    }
  }
}