OrgApiKey class abstract

Available extensions
Annotations

Constructors

OrgApiKey({required String id, required String orgId, required String name, required String keyPrefix, required List<String> scopes, DateTime? expiresAt, DateTime? lastUsedAt, required String createdBy, required DateTime createdAt, DateTime? revokedAt})
const
factory

Properties

copyWith → $OrgApiKeyCopyWith<OrgApiKey>
Create a copy of OrgApiKey with the given fields replaced by the non-null parameter values.
no setterinherited
createdAt → DateTime
no setterinherited
createdBy → String
no setterinherited
expiresAt → DateTime?
no setterinherited
hashCode → int
The hash code for this object.
no setterinherited
id → String
no setterinherited
isActive → bool
no setter
isExpired → bool
no setter
isRevoked → bool
no setter
keyPrefix → String
no setterinherited
lastUsedAt → DateTime?
no setterinherited
name → String
no setterinherited
orgId → String
no setterinherited
revokedAt → DateTime?
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
scopes → List<String>
no setterinherited

Methods

map<TResult extends Object?>(TResult $default(_OrgApiKey value)) → TResult

Available on OrgApiKey, provided by the OrgApiKeyPatterns extension

A switch-like method, using callbacks.
mapOrNull<TResult extends Object?>(TResult? $default(_OrgApiKey value)?) → TResult?

Available on OrgApiKey, provided by the OrgApiKeyPatterns extension

A variant of map that fallback to returning null.
maybeMap<TResult extends Object?>(TResult $default(_OrgApiKey value)?, {required TResult orElse()}) → TResult

Available on OrgApiKey, provided by the OrgApiKeyPatterns extension

A variant of map that fallback to returning orElse.
maybeWhen<TResult extends Object?>(TResult $default(String id, String orgId, String name, String keyPrefix, List<String> scopes, DateTime? expiresAt, DateTime? lastUsedAt, String createdBy, DateTime createdAt, DateTime? revokedAt)?, {required TResult orElse()}) → TResult

Available on OrgApiKey, provided by the OrgApiKeyPatterns extension

A variant of when that fallback to an orElse callback.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited
when<TResult extends Object?>(TResult $default(String id, String orgId, String name, String keyPrefix, List<String> scopes, DateTime? expiresAt, DateTime? lastUsedAt, String createdBy, DateTime createdAt, DateTime? revokedAt)) → TResult

Available on OrgApiKey, provided by the OrgApiKeyPatterns extension

A switch-like method, using callbacks.
whenOrNull<TResult extends Object?>(TResult? $default(String id, String orgId, String name, String keyPrefix, List<String> scopes, DateTime? expiresAt, DateTime? lastUsedAt, String createdBy, DateTime createdAt, DateTime? revokedAt)?) → TResult?

Available on OrgApiKey, provided by the OrgApiKeyPatterns extension

A variant of when that fallback to returning null

Operators

operator ==(Object other) → bool
The equality operator.
inherited