OracleView class

Constructors

OracleView({String? feed, String? id, String? name, String? source_, String? status, String? updatedAt, String? value})
Returns a new OracleView instance.

Properties

feed ↔ String?
Feed is the trading pair this feed prices.
getter/setter pair
hashCode → int
The hash code for this object.
no setteroverride
id ↔ String?
ID is the feed's own id, else its trading pair.
getter/setter pair
name ↔ String?
Name is the feed's display name — the trading pair, e.g. "LUX/USD".
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
source_ ↔ String?
Source is the oracle network the feed originates from; "O-Chain" by default.
getter/setter pair
status ↔ String?
Status is "active" for a listed feed.
getter/setter pair
updatedAt ↔ String?
UpdatedAt is the feed's own timestamp, RFC 3339 UTC.
getter/setter pair
value ↔ String?
Value is the feed's price, verbatim as the registry carries it.
getter/setter pair

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.
override

Static Methods

fromJson(dynamic value) → OracleView?
Returns a new OracleView instance and imports its values from value if it's a Map, null otherwise.
listFromJson(dynamic json, {bool growable = false}) → List<OracleView>
mapFromJson(dynamic json) → Map<String, OracleView>
mapListFromJson(dynamic json, {bool growable = false}) → Map<String, List<OracleView>>

Constants

requiredKeys → const Set<String>
The list of required keys that must be present in a JSON.