BMFHollowShape.fromMap constructor
- Map map
map => BMFHollowShape
Implementation
BMFHollowShape.fromMap(Map map)
: assert(map.containsKey('coordinates')),
assert(map.containsKey('center')) {
if (map['coordinates'] != null) {
coordinates = new List<BMFCoordinate>();
map['coordinates'].forEach((v) {
coordinates.add(BMFCoordinate.fromMap(v as Map));
});
}
hollowShapeType = map['hollowShapeType'] == null
? null
: BMFHollowShapeType.values[map['hollowShapeType'] as int];
center =
map['center'] == null ? null : BMFCoordinate.fromMap(map['center']);
radius = map['radius'];
}