SnapshotBankAccount.fromJson constructor

SnapshotBankAccount.fromJson(
  1. Map<String, Object?> json
)

Implementation

factory SnapshotBankAccount.fromJson(
  Map<String, Object?> json,
) =>
    SnapshotBankAccount(
      type: json["type"] as String,
      ghanaBankAccount: json["ghana_bank_account"] == null
          ? null
          : SnapshotGhanaBankAccount.fromJson(
              (json["ghana_bank_account"] as Map).cast<String, Object?>(),
            ),
    );