UHotelInvoiceReadParams.fromMap constructor
UHotelInvoiceReadParams.fromMap(
- Map<String, dynamic> json
)
Implementation
factory UHotelInvoiceReadParams.fromMap(Map<String, dynamic> json) => UHotelInvoiceReadParams(
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"],
reservationId: json["reservationId"],
userId: json["userId"],
hotelId: json["hotelId"],
isPaid: json["isPaid"],
isOverdue: json["isOverdue"],
minDueDate: json["minDueDate"] == null ? null : DateTime.parse(json["minDueDate"]),
maxDueDate: json["maxDueDate"] == null ? null : DateTime.parse(json["maxDueDate"]),
minDebtAmount: json["minDebtAmount"]?.toDouble(),
maxDebtAmount: json["maxDebtAmount"]?.toDouble(),
orderBy: json["orderBy"],
selectorArgs: json["selectorArgs"] == null ? null : HotelInvoiceSelectorArgs.fromMap(json["selectorArgs"]),
);