UHotelInvoiceUpdateParams.fromMap constructor

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

Implementation

factory UHotelInvoiceUpdateParams.fromMap(Map<String, dynamic> json) => UHotelInvoiceUpdateParams(
  id: json["id"],
  detail1: json["detail1"],
  detail2: json["detail2"],
  addTags: json["addTags"] == null ? <int>[] : List<int>.from(json["addTags"]!.map((dynamic x) => x)),
  removeTags: json["removeTags"] == null ? <int>[] : List<int>.from(json["removeTags"]!.map((dynamic x) => x)),
  tags: json["tags"] == null ? <int>[] : List<int>.from(json["tags"]!.map((dynamic x) => x)),
  debtAmount: json["debtAmount"]?.toDouble(),
  creditorAmount: json["creditorAmount"]?.toDouble(),
  paidAmount: json["paidAmount"]?.toDouble(),
  penaltyAmount: json["penaltyAmount"]?.toDouble(),
  penaltyPrecentEveryDate: json["penaltyPrecentEveryDate"],
  dueDate: json["dueDate"] == null ? null : DateTime.parse(json["dueDate"]),
  reservationId: json["reservationId"],
  adminUserIds: json["adminUserIds"] == null ? <String>[] : List<String>.from(json["adminUserIds"]!.map((dynamic x) => x)),
  addAdminUserIds: json["addAdminUserIds"] == null ? <String>[] : List<String>.from(json["addAdminUserIds"]!.map((dynamic x) => x)),
  removeAdminUserIds: json["removeAdminUserIds"] == null ? <String>[] : List<String>.from(json["removeAdminUserIds"]!.map((dynamic x) => x)),
);