toJson method

  1. @override
Map<String, dynamic> toJson()
override

Implementation

@override
Map<String, dynamic> toJson() {
  return {
    "@type": CONSTRUCTOR,
    "chat_id": this.chatId,
    "reason": this.reason == null ? null : this.reason.toJson(),
    "message_ids": this.messageIds.map((i) => i).toList(),
    "@extra": this.extra,
  };
}