UserEnablementItem class

Constructors

UserEnablementItem({bool? canOptIn, bool? effective, String? id, String? kind, bool? optedIn, String? state})
Returns a new UserEnablementItem instance.

Properties

canOptIn ↔ bool?
CanOptIn is whether POST /v1/pricing/enablement/optin would do anything here: the item is in beta and this org is not on its list yet. False for a caller with no validated org, who has no org to enrol.
getter/setter pair
effective ↔ bool?
Effective is whether the caller's org may use the item right now, which is the field to branch on: true for any ga item, for a beta this org holds, and never for an off one.
getter/setter pair
hashCode → int
The hash code for this object.
no setteroverride
id ↔ String?
ID is the item within that namespace — a model id, a provider name, or a feature key.
getter/setter pair
kind ↔ String?
Kind is the namespace the id lives in: "model", "provider" or "feature".
getter/setter pair
optedIn ↔ bool?
OptedIn is whether the caller's org is on this item's beta grant list. It can be true on an "off" item — the list survives the kill switch and is simply ignored while it is thrown — so it does not imply Effective.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
state ↔ String?
State is the item's GLOBAL availability — "off", "beta" or "ga" — which is the operator's setting and not this caller's answer. Effective is that.
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) → UserEnablementItem?
Returns a new UserEnablementItem instance and imports its values from value if it's a Map, null otherwise.
listFromJson(dynamic json, {bool growable = false}) → List<UserEnablementItem>
mapFromJson(dynamic json) → Map<String, UserEnablementItem>
mapListFromJson(dynamic json, {bool growable = false}) → Map<String, List<UserEnablementItem>>

Constants

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