ChatMemberUpdated class abstract

This object represents changes in the status of a chat member.

Implemented types
Available extensions
Annotations
  • @freezed

Constructors

ChatMemberUpdated({@JsonKey.new(name: 'chat') required Chat chat, @JsonKey.new(name: 'from') required User from, @JsonKey.new(name: 'date') required int date, @JsonKey.new(name: 'old_chat_member') required ChatMember oldChatMember, @JsonKey.new(name: 'new_chat_member') required ChatMember newChatMember, @JsonKey.new(name: 'invite_link') ChatInviteLink? inviteLink, @JsonKey.new(name: 'via_chat_folder_invite_link') bool? viaChatFolderInviteLink, @JsonKey.new(name: 'via_join_request') bool? viaJoinRequest})
Creates a new ChatMemberUpdated object.
const
factory
ChatMemberUpdated.fromJson(Map<String, dynamic> json)
Creates a new ChatMemberUpdated object from json.
factory

Properties

chat → Chat
Chat the user belongs to
no setterinherited
copyWith → $ChatMemberUpdatedCopyWith<ChatMemberUpdated>
Create a copy of ChatMemberUpdated with the given fields replaced by the non-null parameter values.
no setterinherited
date → int
Date the change was done in Unix time
no setterinherited
dateTime → DateTime

Available on ChatMemberUpdated, provided by the ChatMemberUpdatedExt extension

Returns a DateTime object representing the date field
no setter
from → User
Performer of the action, which resulted in the change
no setterinherited
hashCode → int
The hash code for this object.
no setterinherited
Optional. Chat invite link, which was used by the user to join the chat; for joining by invite link events only.
no setterinherited
newChatMember → ChatMember
New information about the chat member
no setterinherited
oldChatMember → ChatMember
Previous information about the chat member
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
Optional. True, if the user joined the chat via a chat folder invite link
no setterinherited
viaJoinRequest → bool?
Optional. True, if the user joined the chat after sending a direct join request and being approved by an administrator
no setterinherited

Methods

map<TResult extends Object?>(TResult $default(_ChatMemberUpdated value)) → TResult

Available on ChatMemberUpdated, provided by the ChatMemberUpdatedPatterns extension

A switch-like method, using callbacks.
mapOrNull<TResult extends Object?>(TResult? $default(_ChatMemberUpdated value)?) → TResult?

Available on ChatMemberUpdated, provided by the ChatMemberUpdatedPatterns extension

A variant of map that fallback to returning null.
maybeMap<TResult extends Object?>(TResult $default(_ChatMemberUpdated value)?, {required TResult orElse()}) → TResult

Available on ChatMemberUpdated, provided by the ChatMemberUpdatedPatterns extension

A variant of map that fallback to returning orElse.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
Serializes this ChatMemberUpdated to a JSON map.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited