Client class

Constructors

Client.new({required ClientObjectEnum object, required String id, List<String> sessionIds = const [], List<Session> sessions = const [], required String? signInId, required String? signUpId, required String? lastActiveSessionId, required int updatedAt, required int createdAt})
Returns a new Client instance.

Properties

createdAt int
Unix timestamp of creation.
getter/setter pair
hashCode int
The hash code for this object.
no setteroverride
id String
String representing the identifier of the session.
getter/setter pair
lastActiveSessionId String?
Last active session_id.
getter/setter pair
object ClientObjectEnum
String representing the object's type. Objects of the same type share the same value.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sessionIds List<String>
getter/setter pair
sessions List<Session>
getter/setter pair
signInId String?
getter/setter pair
signUpId String?
getter/setter pair
updatedAt int
Unix timestamp of last update.
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) Client?
Returns a new Client instance and imports its values from value if it's a Map, null otherwise.
listFromJson(dynamic json, {bool growable = false}) List<Client>
mapFromJson(dynamic json) Map<String, Client>
mapListFromJson(dynamic json, {bool growable = false}) Map<String, List<Client>>

Constants

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