Session class
Websocket session.
- Annotations
-
- @freezed
Constructors
- Session({@JsonKey(name: 'uid') required String uid, @JsonKey(name: 'created') @DateTimeConverter() required DateTime created, @JsonKey(name: 'lang') String? lang, @JsonKey(name: 'team') String? team, @Default(false) @JsonKey(name: 'is_mobile') bool? isMobile, @Default(false) @JsonKey(name: 'afk') bool? afk, @JsonKey(name: 'useragent') String? useragent, @JsonKey(name: 'addr') String? addr})
-
constfactory
-
Session.fromJson(Map<
String, dynamic> json) -
factory
Properties
- addr → String?
-
IP address.
no setterinherited
- afk → bool?
-
Away from keyboard.
no setterinherited
-
copyWith
→ $SessionCopyWith<
Session> -
no setterinherited
- created → DateTime
-
Creation datetime.
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- isMobile → bool?
-
Mobile.
no setterinherited
- lang → String?
-
Language code.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- team → String?
-
Team id.
no setterinherited
- uid → String
-
Session id.
no setterinherited
- useragent → String?
-
User agent.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited