BankAccountModel.fromJson constructor

BankAccountModel.fromJson(
  1. Map<String, dynamic> json
)

Implementation

BankAccountModel.fromJson(Map<String, dynamic> json) {
  if (json["accountType"] is int) this.accountType = json["accountType"];
  if (json["bankName"] is String) this.bankName = json["bankName"];
  if (json["currency"] is String) this.currency = json["currency"];
  if (json["swiftCode"] is String) this.swiftCode = json["swiftCode"];
  if (json["bicCode"] is String) this.bicCode = json["bicCode"];
  if (json["bankAddress"] is String) this.bankAddress = json["bankAddress"];
  if (json["cryptoWalletaddress"] is String)
    this.cryptoWalletaddress = json["cryptoWalletaddress"];
  if (json["id"] is int) this.id = json["id"];
  if (json["fullName"] is String) this.fullName = json["fullName"];
  if (json["accountNumber"] is String)
    this.accountNumber = json["accountNumber"];
}