PolygonFence.fromMap constructor
- Map map
Implementation
PolygonFence.fromMap(Map map)
: assert(map != null),
super.fromMap(map) {
if (map['vertexes'] != null) {
vertexes = <LatLng>[];
map['vertexes'].forEach((e) {
vertexes.add(LatLng.fromMap(e as Map));
});
}
if (map['coordType'] != null) {
int value = map['coordType'] as int;
if (value >= 0 && value <= 2) {
coordType = CoordType.values[value];
}
}
}