toJson method

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

Object to Map serializer

Implementation

@override
Map<String, dynamic> toJson() {
  return {
    '@type': 'autoDownloadSettings',
    if (extra != null) '@extra': extra,
    'is_auto_download_enabled': is_auto_download_enabled,
    'max_photo_file_size': max_photo_file_size,
    'max_video_file_size': max_video_file_size,
    'max_other_file_size': max_other_file_size,
    'video_upload_bitrate': video_upload_bitrate,
    'preload_large_videos': preload_large_videos,
    'preload_next_audio': preload_next_audio,
    'preload_stories': preload_stories,
    'use_less_data_for_calls': use_less_data_for_calls
  };
}