UHotelReservationReadParams.fromMap constructor

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

Implementation

factory UHotelReservationReadParams.fromMap(Map<String, dynamic> json) => UHotelReservationReadParams(
  pageSize: json["pageSize"],
  pageNumber: json["pageNumber"],
  fromCreatedAt: json["fromCreatedAt"] == null ? null : DateTime.parse(json["fromCreatedAt"]),
  toCreatedAt: json["toCreatedAt"] == null ? null : DateTime.parse(json["toCreatedAt"]),
  tags: json["tags"] == null ? <int>[] : List<int>.from(json["tags"]!.map((dynamic x) => x)),
  ids: json["ids"] == null ? <String>[] : List<String>.from(json["ids"]!.map((dynamic x) => x)),
  creatorId: json["creatorId"],
  userId: json["userId"],
  userName: json["userName"],
  roomId: json["roomId"],
  hotelId: json["hotelId"],
  checkInDate: json["checkInDate"] == null ? null : DateTime.parse(json["checkInDate"]),
  checkOutDate: json["checkOutDate"] == null ? null : DateTime.parse(json["checkOutDate"]),
  activeOnly: json["activeOnly"],
  upcomingOnly: json["upcomingOnly"],
  pastOnly: json["pastOnly"],
  orderBy: json["orderBy"],
  selectorArgs: json["selectorArgs"] == null ? null : HotelReservationSelectorArgs.fromMap(json["selectorArgs"]),
);