createCategory function
Implementation
PoiCategory createCategory(Map map) {
return PoiCategory(
identifier: map["identifier"].toString(),
name: map["poiCategoryName"],
iconSelected: map["icon_selected"],
// Android icon_unselected vs iOS icon_deselected:
iconUnselected: map["icon_unselected"] ?? map["icon_deselected"],
);
}