SummaryResp class

Constructors

SummaryResp({SourceState? account, String? from, SourceState? hanzo, String? range, List<TotalView> rows = const [], String? to})
Returns a new SummaryResp instance.

Properties

account ↔ SourceState?
Account reports the linked-accounts ledger's own availability, so a partial answer never fabricates this half. It is scoped to the CALLER: the accounts they linked, metered from each provider's own login.
getter/setter pair
from ↔ String?
From is when the window opens, RFC 3339 UTC. ONE resolver fixes it for both ledgers, so the account rows and the Hanzo rows always cover the same period — two resolvers could drift and turn the union into a lie.
getter/setter pair
hanzo ↔ SourceState?
Hanzo reports the same for the Hanzo-routed ledger, which is scoped to the ORG rather than the caller — a different question over the same window. The two are independent: either can be unavailable while the other answers, and Rows then carries only the half that did.
getter/setter pair
hashCode → int
The hash code for this object.
no setteroverride
range ↔ String?
Range is the resolved period label.
getter/setter pair
rows ↔ List<TotalView>
Rows is the union of both ledgers, each row labelled by source and scope — concatenated, NEVER summed: a plan's percentage is not money.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
to ↔ String?
To is where the window closes, EXCLUSIVE, RFC 3339 UTC — the instant the read was served. Shared by both ledgers, for the reason From gives.
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) → SummaryResp?
Returns a new SummaryResp instance and imports its values from value if it's a Map, null otherwise.
listFromJson(dynamic json, {bool growable = false}) → List<SummaryResp>
mapFromJson(dynamic json) → Map<String, SummaryResp>
mapListFromJson(dynamic json, {bool growable = false}) → Map<String, List<SummaryResp>>

Constants

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