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