UHotelReservationCreateParams.fromMap constructor

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

Implementation

factory UHotelReservationCreateParams.fromMap(Map<String, dynamic> json) => UHotelReservationCreateParams(
  detail1: json["detail1"],
  detail2: json["detail2"],
  tags: json["tags"] == null ? <int>[] : List<int>.from(json["tags"]!.map((dynamic x) => x)),
  id: json["id"],
  creatorId: json["creatorId"],
  checkInDate: DateTime.parse(json["checkInDate"]),
  checkOutDate: DateTime.parse(json["checkOutDate"]),
  guestCount: json["guestCount"],
  userId: json["userId"],
  roomId: json["roomId"],
  totalPrice: json["totalPrice"]?.toDouble(),
  guestName: json["guestName"],
  guestPhone: json["guestPhone"],
  notes: json["notes"],
  penaltyPrecentEveryDate: json["penaltyPrecentEveryDate"],
  adminUserIds: json["adminUserIds"] == null ? <String>[] : List<String>.from(json["adminUserIds"]!.map((dynamic x) => x)),
);