createPoi function
Implementation
Poi createPoi(Map map) {
return Poi(
id: map["identifier"],
name: map["poiName"],
buildingId: map["buildingIdentifier"],
poiCategory: createCategory(map["category"]),
position: createPoint(map["position"]),
customFields: Map<String, dynamic>.from(map["customFields"]),
);
}