UDormBedInvoiceChartResponse.fromMap constructor

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

Implementation

factory UDormBedInvoiceChartResponse.fromMap(Map<String, dynamic> json) => UDormBedInvoiceChartResponse(
  month: json["month"] as String,
  totalDebt: (json["totalDebt"] as num?)?.toDouble() ?? 0,
  totalPaid: (json["totalPaid"] as num?)?.toDouble() ?? 0,
  totalPenalty: (json["totalPenalty"] as num?)?.toDouble() ?? 0,
  totalRemaining: (json["totalRemaining"] as num?)?.toDouble() ?? 0,
  invoiceCount: json["invoiceCount"],
);