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