UDormBedInvoiceChartItem.fromMap constructor
UDormBedInvoiceChartItem.fromMap(
- Map<String, dynamic> json
)
Implementation
factory UDormBedInvoiceChartItem.fromMap(Map<String, dynamic> json) => UDormBedInvoiceChartItem(
month: json["month"] ?? "",
totalDebt: (json["totalDebt"] ?? 0).toString().toDouble(),
totalPaid: (json["totalPaid"] ?? 0).toString().toDouble(),
totalPenalty: (json["totalPenalty"] ?? 0).toString().toDouble(),
totalRemaining: (json["totalRemaining"] ?? 0).toString().toDouble(),
invoiceCount: json["invoiceCount"] ?? 0,
);