MessageGenerationStopped class abstract
This object describes an update about a user stopping message generation.
- Implemented types
- Available extensions
- Annotations
-
- @freezed
Constructors
- MessageGenerationStopped({@JsonKey.new(name: 'chat') required Chat chat, @JsonKey.new(name: 'message_thread_id') int? messageThreadId, @JsonKey.new(name: 'draft_id') required int draftId})
-
Creates a new MessageGenerationStopped object.
constfactory
-
MessageGenerationStopped.fromJson(Map<
String, dynamic> json) -
Creates a new MessageGenerationStopped object from a JSON Map.
factory
Properties
- chat → Chat
-
Chat in which the message is generated
no setterinherited
-
copyWith
→ $MessageGenerationStoppedCopyWith<
MessageGenerationStopped> -
Create a copy of MessageGenerationStopped
with the given fields replaced by the non-null parameter values.
no setterinherited
- draftId → int
-
Unique identifier of the message draft which was stopped
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- messageThreadId → int?
-
Optional. Unique identifier of the message thread in which the message
is generated
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
map<
TResult extends Object?> (TResult $default(_MessageGenerationStopped value)) → TResult -
Available on MessageGenerationStopped, provided by the MessageGenerationStoppedPatterns extension
Aswitch-like method, using callbacks. -
mapOrNull<
TResult extends Object?> (TResult? $default(_MessageGenerationStopped value)?) → TResult? -
Available on MessageGenerationStopped, provided by the MessageGenerationStoppedPatterns extension
A variant ofmapthat fallback to returningnull. -
maybeMap<
TResult extends Object?> (TResult $default(_MessageGenerationStopped value)?, {required TResult orElse()}) → TResult -
Available on MessageGenerationStopped, provided by the MessageGenerationStoppedPatterns extension
A variant ofmapthat fallback to returningorElse. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
Serializes this MessageGenerationStopped to a JSON map.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited