IAGeofence.fromGeoJson constructor
IAGeofence.fromGeoJson(
- Map map
Implementation
IAGeofence.fromGeoJson(Map map)
: id = map['id'],
name = map['properties']['name'],
floor = map['properties']['floor'],
payload = map['properties']['payload'] {
List<IACoordinate> coords = [];
for (var coord in map['geometry']['coordinates'][0]) {
coords.add(IACoordinate(coord[1], coord[0]));
}
coordinates = coords;
}