UHotelRoomAvailabilityParams.fromMap constructor

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

Implementation

factory UHotelRoomAvailabilityParams.fromMap(Map<String, dynamic> json) => UHotelRoomAvailabilityParams(
  hotelId: json["hotelId"],
  roomId: json["roomId"],
  checkInDate: DateTime.parse(json["checkInDate"]),
  checkOutDate: DateTime.parse(json["checkOutDate"]),
  guestCount: json["guestCount"] == null ? 1 : (json["guestCount"] as num).toInt(),
  selectorArgs: json["selectorArgs"] == null ? null : UHotelRoomSelectorArgs.fromMap(json["selectorArgs"]),
);