Session class

Keeps session information of a specific user

Constructors

Session({required List<String> accessGroupKeys, required String creationDtm, required String token, required UserAgent userAgent, required String userId})
Creates a instance of Session
Session.fromJson(Map<String, dynamic> json)
Creates a instance of Session from JsonMap.
factory

Properties

accessGroupKeys List<String>
Access group keys associated with this user session. With access groups you can assign roles to users and their sessions and enabled role based access control to your app endpoints
getter/setter pair
creationDtm String
Creation date and time of the session token
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
token String
Unique session token string
getter/setter pair
userAgent UserAgent
The user-agent (device) information of the user's session
getter/setter pair
userId String
The id of the application end user this session is associated with
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Convert instance to JsonMap.
toString() String
A string representation of this object.
inherited

Operators

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