HeliumOraclePrice class
A data point representing the cost of 1 HNT in USD at a given time.
- Annotations
-
- @JsonSerializable()
Constructors
- HeliumOraclePrice({required int price, required int block, required DateTime timestamp})
- Creates a new instance.
-
HeliumOraclePrice.fromJson(Map<
String, dynamic> json) -
Creates an instance from a map derived from the JSON serialization.
factory
Properties
- block → int
-
The block at which the price took effect.
final
- dollars → double
-
The approximate price of 1 HNT in USD.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- price → int
-
The price of 1 HNT in thousandths of a DC or hundred-millionths of a USD.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- timestamp → DateTime
-
The time at which the price took effect.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> - Creates a map suitable for serialization to JSON.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited