BankAccount.fromJson constructor
BankAccount.fromJson(- Map<String, dynamic> json
)
Implementation
factory BankAccount.fromJson(Map<String, dynamic> json) => BankAccount(
id: json["id"],
bankId: json["bank_id"],
organizationId: json["organization_id"],
currencyId: json["currency_id"],
accountNumber: json["account_number"],
holderName: json["holder_name"],
ciNumber: json["ci_number"],
ciComplement: json["ci_complement"],
email: json["email"],
cellphone: json["cellphone"],
code: json["code"],
active: json["active"],
createdAt: json["created_at"] == null
? null
: DateTime.parse(json["created_at"]),
updatedAt: json["updated_at"] == null
? null
: DateTime.parse(json["updated_at"]),
bank: Bank.fromJson(json["bank"]),
organization: json["organization"] == null
? null
: Organization.fromJson(json["organization"]),
currency: Currency.fromJson(json["currency"]),
);