OnlineContact class

Contact online status.

Annotations
  • @freezed

Constructors

OnlineContact({@JsonKey(name: 'jid') required String jid, @Default(false) @JsonKey(name: 'afk') bool? afk, @Default(false) @JsonKey(name: 'focused') bool? focused, @JsonKey(name: 'mobile') required bool mobile})
const
factory
OnlineContact.fromJson(Map<String, dynamic> json)
factory

Properties

afk bool?
Is away from keyboard.
no setterinherited
copyWith → $OnlineContactCopyWith<OnlineContact>
no setterinherited
focused bool?
Focus mode enabled.
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
jid String
Contact id.
no setterinherited
mobile bool
Is mobile client.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
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