CurrencyData class

Represents currency information in the Amwal payment system.

Contains essential currency details including numeric ID, string identifier, and display name. Used throughout the SDK for currency selection and transaction processing.

Example:

const currency = CurrencyData(
  idN: 1,
  id: 'USD',
  name: 'US Dollar',
);

Constructors

CurrencyData.new({required int idN, required String id, required String name})
Creates a CurrencyData instance.
const
CurrencyData.fromJson(dynamic json)
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
id String
String identifier for the currency (e.g., 'USD', 'EUR').
final
idN int
Numeric identifier for the currency.
final
name String
Display name of the currency (e.g., 'US Dollar', 'Euro').
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>
toString() String
A string representation of this object.
inherited

Operators

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