createCategory function

PoiCategory createCategory(
  1. Map map
)

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"],
  );
}