toMap method
Converts the PlaceModel instance into a map representation, where the keys are string identifiers corresponding to the instance's properties, and the values are the respective property values.
Implementation
Map<String, dynamic> toMap() {
return {
'imagePath': imagePaths,
'name': name,
'openInfo': openInfoTime,
'description': description,
'subTitleDescription': subTitleDescription,
'location': location,
'rating': rating,
'reviewCount': reviewCount,
'mapLink': mapLink,
'mapImagePath': mapImagePath,
};
}