toMap method
Implementation
Map<String, dynamic> toMap() => <String, dynamic>{
"detail1": detail1,
"detail2": detail2,
"description": description,
"policies": policies,
"checkInTime": checkInTime,
"checkOutTime": checkOutTime,
"amenities": List<String>.from(amenities.map((String x) => x)),
};