toMetaJson method
Serializes the session into a metadata-oriented JSON representation.
This form includes the database id in addition to the standard session
fields and timestamp metadata.
Returns a map useful for administrative or internal inspection.
Example:
final meta = session.toMetaJson();
print(meta['id']);
print(meta['uuid']);
print(meta['email']);
Implementation
@override
Map<String, dynamic> toMetaJson() {
return {"id": id, "uuid": uuid, 'email': email, 'token': token, "created_at": createdAt?.toIso8601String(), "updated_at": updatedAt?.toIso8601String()};
}