AroundSearchEntityOption.fromMap constructor

AroundSearchEntityOption.fromMap(
  1. Map map
)

Implementation

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

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