Session class
Constructors
- Session.new({required SessionObjectEnum object, required String id, required String userId, required String clientId, Object? actor, required SessionStatusEnum status, String? lastActiveOrganizationId, required int lastActiveAt, SessionActivityResponse? latestActivity, required int expireAt, required int abandonAt, required int updatedAt, required int createdAt})
- Returns a new Session instance.
Properties
- abandonAt ↔ int
-
Unix timestamp of abandonment.
getter/setter pair
- actor ↔ Object?
-
getter/setter pair
- clientId ↔ String
-
getter/setter pair
- createdAt ↔ int
-
Unix timestamp of creation.
getter/setter pair
- expireAt ↔ int
-
Unix timestamp of expiration.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setteroverride
- id ↔ String
-
getter/setter pair
- lastActiveAt ↔ int
-
getter/setter pair
- lastActiveOrganizationId ↔ String?
-
getter/setter pair
- latestActivity ↔ SessionActivityResponse?
-
getter/setter pair
- object ↔ SessionObjectEnum
-
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
- status ↔ SessionStatusEnum
-
getter/setter pair
- updatedAt ↔ int
-
Unix timestamp of last update.
getter/setter pair
- userId ↔ String
-
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) → Session? -
Returns a new Session instance and imports its values from
value
if it's a Map, null otherwise. -
listFromJson(
dynamic json, {bool growable = false}) → List< Session> -
mapFromJson(
dynamic json) → Map< String, Session> -
mapListFromJson(
dynamic json, {bool growable = false}) → Map< String, List< Session> >
Constants
-
requiredKeys
→ const Set<
String> - The list of required keys that must be present in a JSON.