toJson method

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

Implementation

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