ActivityPoint class

Constructors

ActivityPoint({int? costCents, String? day, int? requests, int? tokens})
Returns a new ActivityPoint instance.

Properties

costCents ↔ int?
CostCents is the day's spend in whole US cents. A series is only ever returned for a subject the caller is authorized to see, so this is never withheld: 0 means no spend that day.
getter/setter pair
day ↔ String?
Day is the UTC calendar day this point covers, "2006-01-02".
getter/setter pair
hashCode → int
The hash code for this object.
no setteroverride
requests ↔ int?
Requests is the subject's request count on this day. 0 is a real, quiet day: the series is gap-filled, so every day in the range is present whether or not anything happened.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
tokens ↔ int?
Tokens is prompt+completion tokens on this day — normally the heatmap's intensity, scaled against ActivityTotals.MaxTokens.
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) → ActivityPoint?
Returns a new ActivityPoint instance and imports its values from value if it's a Map, null otherwise.
listFromJson(dynamic json, {bool growable = false}) → List<ActivityPoint>
mapFromJson(dynamic json) → Map<String, ActivityPoint>
mapListFromJson(dynamic json, {bool growable = false}) → Map<String, List<ActivityPoint>>

Constants

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