UsageAnalyticsView class

Constructors

UsageAnalyticsView({String? end, bool? export_, String? plan, ProviderBreakdown? providers, String? range, int? retentionDays, UsageScope? scope, String? start})
Returns a new UsageAnalyticsView instance.

Properties

end ↔ String?
End is the window's exclusive end, RFC3339 UTC.
getter/setter pair
export_ ↔ bool?
Export is whether the resolved plan allows exporting these rows.
getter/setter pair
hashCode → int
The hash code for this object.
no setteroverride
plan ↔ String?
Plan echoes the plan id the entitlement was resolved from.
getter/setter pair
providers ↔ ProviderBreakdown?
Providers is the per-provider roll-up over the window.
getter/setter pair
range ↔ String?
Range is the label that was ASKED for. A plan whose retention is shorter than that window is served the retention instead, so read start and end for the window the rows actually cover and retentionDays for the reason — on a clamped read the label is longer than what was served.
getter/setter pair
retentionDays ↔ int?
RetentionDays is how far back the resolved plan allows reading.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
scope ↔ UsageScope?
Scope is the tenant the rows were read under — the validated principal's org.
getter/setter pair
start ↔ String?
Start is the window's inclusive start, RFC3339 UTC, AFTER the retention clamp — so it may be later than the start that was asked for.
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) → UsageAnalyticsView?
Returns a new UsageAnalyticsView instance and imports its values from value if it's a Map, null otherwise.
listFromJson(dynamic json, {bool growable = false}) → List<UsageAnalyticsView>
mapFromJson(dynamic json) → Map<String, UsageAnalyticsView>
mapListFromJson(dynamic json, {bool growable = false}) → Map<String, List<UsageAnalyticsView>>

Constants

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