ExchangeRate class
Exchange rate.
- Annotations
-
- @JsonSerializable(fieldRename: FieldRename.snake)
Constructors
- ExchangeRate(String sourceCurrency, String targetCurrency, String value)
-
const
-
ExchangeRate.fromJson(Map<
String, dynamic> json) -
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sourceCurrency → String
-
The source currency from which to convert an amount.
final
- targetCurrency → String
-
The target currency to which to convert an amount.
final
- value → String
-
The target currency amount. Equivalent to one unit of the source currency.
Formatted as integer or decimal value with one to 15 digits to the right
of the decimal point.
final
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.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited