DashResp class

Constructors

DashResp({String? account, bool? available, List<UsageWindowView> current = const [], String? from, String? provider, String? range, String? scope, String? source_, String? to, List<UsageWindowView> windows = const []})
Returns a new DashResp instance.

Properties

account ↔ String?
Account is the linked account that was asked about, when one was named.
getter/setter pair
available ↔ bool?
Available is false when the warehouse could not be read. That means "no answer", NOT "no usage" — the two lists below are then empty for a reason.
getter/setter pair
current ↔ List<UsageWindowView>
Current is the newest window instance of each lane — the dash headline.
getter/setter pair
from ↔ String?
From is the inclusive start of that window, RFC3339 UTC.
getter/setter pair
hashCode → int
The hash code for this object.
no setteroverride
provider ↔ String?
Provider is the upstream that was asked about, echoed back.
getter/setter pair
range ↔ String?
Range is the window that was served: 1h, 24h, 7d or 30d.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
scope ↔ String?
Scope says whose rows these are: the caller's own linked accounts.
getter/setter pair
source_ ↔ String?
Source names the meter of record — the provider's own login, not Hanzo.
getter/setter pair
to ↔ String?
To is the exclusive end of that window, RFC3339 UTC.
getter/setter pair
windows ↔ List<UsageWindowView>
Windows is every instance in range, newest first — the history behind 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) → DashResp?
Returns a new DashResp instance and imports its values from value if it's a Map, null otherwise.
listFromJson(dynamic json, {bool growable = false}) → List<DashResp>
mapFromJson(dynamic json) → Map<String, DashResp>
mapListFromJson(dynamic json, {bool growable = false}) → Map<String, List<DashResp>>

Constants

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