UsageAnalyticsGrant class

Constructors

UsageAnalyticsGrant({bool? datastore, bool? export_, int? retentionDays})
Returns a new UsageAnalyticsGrant instance.

Properties

datastore ↔ bool?
Datastore is whether the plan may read GET /v1/usage/analytics at all. The free floor is false, and that is what a catalog outage resolves to.
getter/setter pair
export_ ↔ bool?
Export is whether the plan may export the analytics it can read.
getter/setter pair
hashCode → int
The hash code for this object.
no setteroverride
retentionDays ↔ int?
RetentionDays is how far back the plan may read. GET /v1/usage/analytics clamps a custom window's start to this, so an older start returns the clamped window rather than an error.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

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) → UsageAnalyticsGrant?
Returns a new UsageAnalyticsGrant instance and imports its values from value if it's a Map, null otherwise.
listFromJson(dynamic json, {bool growable = false}) → List<UsageAnalyticsGrant>
mapFromJson(dynamic json) → Map<String, UsageAnalyticsGrant>
mapListFromJson(dynamic json, {bool growable = false}) → Map<String, List<UsageAnalyticsGrant>>

Constants

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