AccountData class

Represents the details of a bank account.

This class stores essential bank account information such as routing number, last four digits of the account number, and the account holder’s name.

Constructors

AccountData({required String firstName, required String lastName, required String routingNumber, required String last4})
Creates a new instance of AccountData.
AccountData.fromJson(Map<String, dynamic> json)
Parses an AccountData object from a JSON map.
factory

Properties

firstName → String
The first name of the account holder.
final
hashCode → int
The hash code for this object.
no setterinherited
last4 → String
The last four digits of the bank account number.
final
lastName → String
The last name of the account holder.
final
routingNumber → String
The bank's routing number.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
Converts the AccountData object to a JSON map.
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited