BankAccount.fromJson constructor

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

Implementation

factory BankAccount.fromJson(Map<String, dynamic> json) => BankAccount(
      id: json["id"] == null ? null : json["id"],
      type: json["type"],
      bank: json["bank"] == null ? null : json["bank"],
      accountName: json["account_name"] == null ? null : json["account_name"],
      accountType: json["account_type"] == null ? null : json["account_type"],
      accountNumber:
          json["account_number"] == null ? null : json["account_number"],
      routingNumber:
          json["routing_number"] == null ? null : json["routing_number"],
      accountLimit: json["account_limit"],
      status: json["status"] == null ? null : json["status"],
      accountOwnerName: json["account_owner_name"] == null
          ? null
          : json["account_owner_name"],
      accountOwnerEmail: json["account_owner_email"] == null
          ? null
          : json["account_owner_email"],
      accountOwnerPhone: json["account_owner_phone"] == null
          ? null
          : json["account_owner_phone"],
      createdAt: json["created_at"] == null
          ? null
          : DateTime.parse(json["created_at"]),
    );