OrgApiKeyModel class abstract
- Available extensions
- Annotations
Constructors
-
OrgApiKeyModel({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}) -
constfactory
- OrgApiKeyModel.fromEntity(OrgApiKey entity)
-
factory
-
OrgApiKeyModel.fromJson(Map<
String, dynamic> json) -
factory
Properties
-
copyWith
→ $OrgApiKeyModelCopyWith<
OrgApiKeyModel> -
Create a copy of OrgApiKeyModel
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
- 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(_OrgApiKeyModel value)) → TResult -
Available on OrgApiKeyModel, provided by the OrgApiKeyModelPatterns extension
Aswitch-like method, using callbacks. -
mapOrNull<
TResult extends Object?> (TResult? $default(_OrgApiKeyModel value)?) → TResult? -
Available on OrgApiKeyModel, provided by the OrgApiKeyModelPatterns extension
A variant ofmapthat fallback to returningnull. -
maybeMap<
TResult extends Object?> (TResult $default(_OrgApiKeyModel value)?, {required TResult orElse()}) → TResult -
Available on OrgApiKeyModel, provided by the OrgApiKeyModelPatterns extension
A variant ofmapthat fallback to returningorElse. -
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 OrgApiKeyModel, provided by the OrgApiKeyModelPatterns extension
A variant ofwhenthat fallback to anorElsecallback. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toEntity(
) → OrgApiKey -
toJson(
) → Map< String, dynamic> -
Serializes this OrgApiKeyModel to a JSON map.
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 OrgApiKeyModel, provided by the OrgApiKeyModelPatterns extension
Aswitch-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 OrgApiKeyModel, provided by the OrgApiKeyModelPatterns extension
A variant ofwhenthat fallback to returningnull
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited