ApiUserModel class

Annotations

Constructors

ApiUserModel({required String name, required String apiKey, required DateTime createdAt, required Duration? expireAfter, required String hash, required bool active, required String secretKeyEncrypted})
const
ApiUserModel.fromJson(Map<String, dynamic> json)
factory

Properties

active bool
final
apiKey String
final
createdAt DateTime
final
expireAfter Duration?
this can be null, to add the option to lifetime api keys
final
hash String
final
hashCode int
The hash code for this object.
no setterinherited
name String
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
secretKeyEncrypted String
final

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.
inherited

Operators

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

Static Methods

fromModels(ApiKeyModel apiKeyModel, ApiHashModel apiHashModel) ApiUserModel