createGeofence function
Implementation
Geofence createGeofence(Map map) {
return Geofence(
identifier: map["identifier"],
name: map["name"],
buildingId: map["buildingIdentifier"],
floorId: map["floorIdentifier"],
polygonPoints: createList<Point>(map["polygonPoints"], createPoint),
customFields: Map<String, dynamic>.from(map["customFields"]),
createdAt: map["createdAt"],
updatedAt: map["updatedAt"]);
}