ServerChatComposingParams class

Params of the server.chat.composing event.

Annotations
  • @freezed

Constructors

ServerChatComposingParams({@JsonKey(name: 'jid') required String jid, @JsonKey(name: 'actor') required String actor, @JsonKey(name: 'composing') required bool composing, @Default(false) @JsonKey(name: 'is_audio') bool? isAudio, @JsonKey(name: 'valid_until') @DateTimeConverter() DateTime? validUntil})
const
factory
ServerChatComposingParams.fromJson(Map<String, dynamic> json)
factory

Properties

actor String
Actor id.
no setterinherited
composing bool
true = start typing / audio recording, false = stop.
no setterinherited
copyWith → $ServerChatComposingParamsCopyWith<ServerChatComposingParams>
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
isAudio bool?
true = audiomessage, false = text typing.
no setterinherited
jid String
Chat or contact id.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
validUntil DateTime?
Composing event max lifetime.
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