fromJson static method
Returns a new AccountSummaryModel instance and imports its values from
value
if it's a Map, null otherwise.
Implementation
// ignore: prefer_constructors_over_static_methods
static AccountSummaryModel fromJson(dynamic value) {
final json = value.cast<String, dynamic>();
return AccountSummaryModel(
accounts: AccountModel.listFromJson(json[r'accounts']),
balance: mapValueOfType<double>(json, r'balance')!,
paid: mapValueOfType<double>(json, r'paid')!,
invoiced: mapValueOfType<double>(json, r'invoiced')!,
);
}