TotalView class

Constructors

TotalView({String? confidence, int? costCents, String? provider, int? requests, String? scope, String? source_, int? tokens, num? usedPct, String? window, int? windows})
Returns a new TotalView instance.

Properties

confidence ↔ String?
Confidence says how real the row's numbers are.
getter/setter pair
costCents ↔ int?
CostCents is the period's spend in cents, in the row's own ledger.
getter/setter pair
hashCode → int
The hash code for this object.
no setteroverride
provider ↔ String?
Provider is the provider the row totals.
getter/setter pair
requests ↔ int?
Requests is the period's request count.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
scope ↔ String?
Scope is whose usage the row measures: user or org.
getter/setter pair
source_ ↔ String?
Source is whose meter the row came from: account or hanzo.
getter/setter pair
tokens ↔ int?
Tokens is the period's total token count.
getter/setter pair
usedPct ↔ num?
UsedPct is the plan consumption percentage, on the account side.
getter/setter pair
window ↔ String?
Window is the window class the row totals, on the account side.
getter/setter pair
windows ↔ int?
Windows is how many window instances the row folds.
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) → TotalView?
Returns a new TotalView instance and imports its values from value if it's a Map, null otherwise.
listFromJson(dynamic json, {bool growable = false}) → List<TotalView>
mapFromJson(dynamic json) → Map<String, TotalView>
mapListFromJson(dynamic json, {bool growable = false}) → Map<String, List<TotalView>>

Constants

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