Session class

Inheritance

Constructors

Session({required String token})
Session.fromJson(Map<String, dynamic> json)

Properties

createdAt DateTime?
Creation timestamp (UTC).
getter/setter pairinherited
csrf String?
getter/setter pair
disk Disk
getter/setter pairinherited
hashCode int
The hash code for this object.
no setterinherited
id int?
Primary key (auto-incremented by backend).
getter/setter pairinherited
lastActivity DateTime
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
token String
getter/setter pair
updatedAt DateTime?
Last update timestamp (UTC).
getter/setter pairinherited
uuid String?
UUID for cross-backend identification.
getter/setter pairinherited

Methods

delete({Disk? disk}) Future<bool>
Deletes the current instance.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
save({Disk? disk}) Future<bool>
Saves the current instance.
override
toJson() Map<String, dynamic>
Serializes model data (excluding metadata).
override
toMetaJson() Map<String, dynamic>
Serializes metadata fields (id, uuid, timestamps).
override
toString() String
Human-readable string representation.
inherited
update({Disk? disk}) Future<bool>
Updates the current instance with new data.
override
xsrf(HttpRequest request) String?

Operators

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

Static Properties

columnDefinitions Map<String, String>
getter/setter pair

Static Methods

init(HttpRequest request) Future<Session?>