toMap method

Map<String, dynamic> toMap()

Returns a Map from the current TourModel.

Implementation

Map<String, dynamic> toMap() {
  return {
    'name': name,
    'numberOfPlaces': numberOfPlaces,
    'lookAtCoordinates': lookAtCoordinates.map((e) => e.toMap()).toList(),
    // 'ballonContentOfPlacemarks': ballonContentOfPlacemarks,
    'poisNames': poisNames,
  };
}