ApiKey class

Constructors

ApiKey({String? createdAt, String? key, List<String> limit = const [], String? prefix, String? type})
Returns a new ApiKey instance.

Properties

createdAt ↔ String?
CreatedAt is when the key last changed, as IAM records it.
getter/setter pair
hashCode → int
The hash code for this object.
no setteroverride
key ↔ String?
Key is the FULL value, and is present for a publishable key only: it is public by construction and useless to its holder if it cannot be read back.
getter/setter pair
limit ↔ List<String>
Limit is what this key may reach, as kind:name entries — model:zen5, project:acme, product:commerce. Absent means the key reaches whatever its holder does, which is what every key minted before limits existed does and must keep doing.
getter/setter pair
prefix ↔ String?
Prefix is the recognizable, non-secret head of the key — enough to tell two keys apart, never enough to use one.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
type ↔ String?
Type is the key class: secret (sk-) or publishable (pk-).
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) → ApiKey?
Returns a new ApiKey instance and imports its values from value if it's a Map, null otherwise.
listFromJson(dynamic json, {bool growable = false}) → List<ApiKey>
mapFromJson(dynamic json) → Map<String, ApiKey>
mapListFromJson(dynamic json, {bool growable = false}) → Map<String, List<ApiKey>>

Constants

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