CircleFence.fromMap constructor

CircleFence.fromMap(
  1. Map map
)

Implementation

CircleFence.fromMap(Map map)
    : assert(map != null),
      super.fromMap(map) {
  center = map['center'] == null ? null : LatLng.fromMap(map['center']);
  radius = map['radius'];

  if (map['coordType'] != null) {
    int value = map['coordType'] as int;
    if (value >= 0 && value <= 2) {
      coordType = CoordType.values[value];
    }
  }
}