toMap method

Map<String, dynamic> toMap()

Implementation

Map<String, dynamic> toMap() => <String, dynamic>{
  "id": id,
  "tags": tags,
  "addTags": addTags,
  "removeTags": removeTags,
  "detail1": detail1,
  "detail2": detail2,
  "adminUserIds": adminUserIds,
  "addAdminUserIds": addAdminUserIds,
  "removeAdminUserIds": removeAdminUserIds,
  "title": title,
  "cityCode": cityCode,
  "stars": stars,
  "address": address,
  "phoneNumber": phoneNumber,
  "email": email,
  "description": description,
  "policies": policies,
  "checkInTime": checkInTime,
  "checkOutTime": checkOutTime,
  "highlights": highlights,
  "rules": rules,
  "howToGetThere": howToGetThere,
  "nearby": nearby?.map((UPlaceNearby e) => e.toMap()).toList(),
  "faqs": faqs?.map((UPlaceFaq e) => e.toMap()).toList(),
  "website": website,
  "whatsapp": whatsapp,
  "instagram": instagram,
  "telegram": telegram,
  "latitude": latitude,
  "longitude": longitude,
  "cancellationFreeHours": cancellationFreeHours,
  "cancellationPenaltyNights": cancellationPenaltyNights,
};