AccountInfo class
Model class representing account information
Constructors
- AccountInfo({AccountType? type, String? number, String? name, WalletType? walletType, CardType? cardType, CardScheme? cardScheme, String? bankName})
-
Creates an AccountInfo instance
const
-
AccountInfo.fromJson(Map<
String, dynamic> json) -
Creates an AccountInfo from JSON
factory
Properties
- bankName → String?
-
Bank name or code (only applicable when type is card or account)
final
- cardScheme → CardScheme?
-
Card scheme/network (Visa, Mastercard, etc., only applicable when type is card)
final
- cardType → CardType?
-
Card type (credit or debit, only applicable when type is card)
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- name → String?
-
Name of the account/wallet (e.g., "paytm", "amazon_pay")
final
- number → String?
-
Last 4 digits of account/card number
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- type → AccountType?
-
Type of account (card, wallet, or account)
final
- walletType → WalletType?
-
Wallet provider type (only applicable when type is wallet)
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> - Converts AccountInfo to JSON
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited