TokenAttributes class

Constructors

TokenAttributes({required TokenAttributesKindEnum kind, String? token, String? name, DateTime? expiry, int? maxActivations, int? activations, int? maxDeactivations, int? deactivations, required DateTime created, required DateTime updated})
Returns a new TokenAttributes instance.

Properties

activations int?
The number of machine activations that have been performed by this token. This attribute is only applicable to license tokens.
getter/setter pair
created DateTime
When the token was created.
getter/setter pair
deactivations int?
The number of machine deactivations that have been performed by this token. This attribute is only applicable to license tokens.
getter/setter pair
expiry DateTime?
The timestamp for when the token expires. Requests using an expired token will be rejected.
getter/setter pair
hashCode int
The hash code for this object.
no setteroverride
kind TokenAttributesKindEnum
The kind of token, based on its bearer.
getter/setter pair
maxActivations int?
The maximum amount of machine activations this token may perform. This attribute is only applicable to license tokens.
getter/setter pair
maxDeactivations int?
The maximum amount of machine deactivations this token may perform. This attribute is only applicable to license tokens.
getter/setter pair
name String?
An optional name for the token. This can be used to easily identify tokens at a glance.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
token String?
The raw token of the token. This attribute is only available to read directly after token generation. This is the value you will use to authenticate with when sending requests to our API.
getter/setter pair
updated DateTime
When the token was last updated.
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) TokenAttributes?
Returns a new TokenAttributes instance and imports its values from value if it's a Map, null otherwise.
listFromJson(dynamic json, {bool growable = false}) List<TokenAttributes>
mapFromJson(dynamic json) Map<String, TokenAttributes>
mapListFromJson(dynamic json, {bool growable = false}) Map<String, List<TokenAttributes>>

Constants

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