toJson method

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

Implementation

@override
Map<String, dynamic> toJson() {
  return {
    "@type": CONSTRUCTOR,
    "size": this.size,
    "ttl": this.ttl,
    "count": this.count,
    "immunity_delay": this.immunityDelay,
    "file_types": this.fileTypes.map((i) => i.toJson()).toList(),
    "chat_ids": this.chatIds.map((i) => i).toList(),
    "exclude_chat_ids": this.excludeChatIds.map((i) => i).toList(),
    "return_deleted_file_statistics": this.returnDeletedFileStatistics,
    "chat_limit": this.chatLimit,
    "@extra": this.extra,
  };
}