BoardResp class

Constructors

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

Properties

account ↔ String?
Account is the account the series narrows to, when one was named.
getter/setter pair
available ↔ bool?
Available reports whether the warehouse answered; false is an honest "we have no data", NOT zero usage.
getter/setter pair
current ↔ List<ReadingView>
Current is the live state of each lane — the dash headline.
getter/setter pair
from ↔ String?
From is when the resolved window opens, RFC 3339 UTC.
getter/setter pair
hashCode → int
The hash code for this object.
no setteroverride
provider ↔ String?
Provider is the provider whose meter answered.
getter/setter pair
range ↔ String?
Range is the resolved period label.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
scope ↔ String?
Scope is always "user": the caller's own linked accounts.
getter/setter pair
source_ ↔ String?
Source is always "account": the provider's own meter, not a Hanzo charge.
getter/setter pair
to ↔ String?
To is where it closes, EXCLUSIVE, RFC 3339 UTC — the instant the read was served, so the window walks forward with the clock and two reads a minute apart do not cover the same period.
getter/setter pair
windows ↔ List<ReadingView>
Windows is every window instance in range, newest first.
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) → BoardResp?
Returns a new BoardResp instance and imports its values from value if it's a Map, null otherwise.
listFromJson(dynamic json, {bool growable = false}) → List<BoardResp>
mapFromJson(dynamic json) → Map<String, BoardResp>
mapListFromJson(dynamic json, {bool growable = false}) → Map<String, List<BoardResp>>

Constants

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