UHotelRoomJson.fromMap constructor

UHotelRoomJson.fromMap(
  1. Map<String, dynamic> json
)

Implementation

factory UHotelRoomJson.fromMap(Map<String, dynamic> json) => UHotelRoomJson(
  detail1: json["detail1"],
  detail2: json["detail2"],
  description: json["description"],
  bedType: json["bedType"],
  sizeSquareMeters: json["sizeSquareMeters"] == null ? null : (json["sizeSquareMeters"] as num).toDouble(),
  floor: json["floor"] == null ? null : (json["floor"] as num).toInt(),
  extraGuestCapacity: json["extraGuestCapacity"] == null ? null : (json["extraGuestCapacity"] as num).toInt(),
  extraGuestPrice: json["extraGuestPrice"] == null ? null : (json["extraGuestPrice"] as num).toDouble(),
);