toMap method

Map<String, dynamic> toMap()

Implementation

Map<String, dynamic> toMap() => <String, dynamic>{
  "detail1": detail1,
  "detail2": detail2,
  "description": description,
  "bedType": bedType,
  "sizeSquareMeters": sizeSquareMeters,
  "floor": floor,
  "amenities": List<String>.from(amenities.map((String x) => x)),
};