UHotelReservationJson.fromMap constructor

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

Implementation

factory UHotelReservationJson.fromMap(Map<String, dynamic> json) => UHotelReservationJson(
  detail1: json["detail1"],
  detail2: json["detail2"],
  guestName: json["guestName"],
  guestPhone: json["guestPhone"],
  notes: json["notes"],
  nightCount: json["nightCount"] == null ? null : (json["nightCount"] as num).toInt(),
);