IssuedCurrencyAmount class

Represents an amount of a specific issued currency on the XRP Ledger.

Inheritance

Constructors

IssuedCurrencyAmount.new({required String value, required String currency, required String issuer})
Factory method to create an instance of IssuedCurrencyAmount.
factory
IssuedCurrencyAmount.fromJson(Map<String, dynamic> json)
Creates an instance of IssuedCurrencyAmount from JSON data.

Properties

currency String
The currency code of the issued currency.
finalinherited
hashCode int
Calculates the hash code for the IssuedCurrency instance.
no setterinherited
isNegative bool
Indicates whether the amount is negative.
no setter
issuer String
The issuer's address associated with the issued currency.
finalinherited
isXrp bool
Indicates whether the currency is XRP.
no setterinherited
isZero bool
Indicates whether the amount is zero.
no setter
rational → BigRational
The rational representation of the numeric value.
latefinal
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
validate String?
no setterinherited
value String
The numeric value of the amount.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toAmount(String value) IssuedCurrencyAmount
Converts the issued currency to an IssuedCurrencyAmount with the specified value.
inherited
toCurrency() XRPCurrencies
Converts the amount to an XRPCurrencies object with the same currency and issuer.
toJson() Map<String, dynamic>
Converts the object to a JSON representation.
override
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
Checks if two instances of IssuedCurrency are equal.
inherited

Static Methods

isValidCurrencyDetails(dynamic json) bool
Checks if the provided JSON data represents valid currency details.