UsageLedgerTotal class final
The cumulative view of a ledger: total == Σ(segments) at every write
(I2), with the per-model breakdown attached (I5) and a total-scope
provenance marker (I3).
Constructors
-
UsageLedgerTotal({required UsageModelTotals totals, required Map<
String, UsageModelTotals> byModel, required UsageSource source}) -
Creates a UsageLedgerTotal.
const
-
UsageLedgerTotal.fromJson(Map<
String, dynamic> json) -
Deserializes from a JSON map; unknown fields are ignored.
factory
Properties
-
byModel
→ Map<
String, UsageModelTotals> -
Per-model cumulative split.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- source → UsageSource
-
Provenance across the whole ledger (
mixedwhen some segments are reported and others estimated).final - totals → UsageModelTotals
-
Cumulative sums over every segment.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> - Serializes to a JSON map.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited