toJson method

Map<String, dynamic> toJson()

Returns a Map from the current SavedToursModel.

Implementation

Map<String, dynamic> toJson() => {
      'query': query,
      'places': places.map((place) => place.toJson()).toList(),
      'country': country,
      'city': city,
      'isGenerated': isGenerated,
    };