BoundSearchEntityOption.fromMap constructor
BoundSearchEntityOption.fromMap(- Map map
)
Implementation
BoundSearchEntityOption.fromMap(Map map)
: assert(map != null),
super.fromMap(map) {
lowerLeft =
map['lowerLeft'] == null ? null : LatLng.fromMap(map['lowerLeft']);
upperRight =
map['upperRight'] == null ? null : LatLng.fromMap(map['upperRight']);
if (map['coordTypeInput'] != null) {
int value = map['coordTypeInput'] as int;
if (value >= 0 && value <= 2) {
coordTypeInput = CoordType.values[value];
}
}
}