toJson method

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

Converts this request to TDLib JSON, tagged with extra if given.

Implementation

@override
Map<String, dynamic> toJson([dynamic extra]) => {
      '@type': CONSTRUCTOR,
      'size': size,
      'ttl': ttl,
      'count': count,
      'immunity_delay': immunityDelay,
      'file_types': [for (final e in fileTypes) e.toJson()],
      'chat_ids': chatIds,
      'exclude_chat_ids': excludeChatIds,
      'return_deleted_file_statistics': returnDeletedFileStatistics,
      'chat_limit': chatLimit,
      if (extra != null) '@extra': extra,
    };