AutoDownloadSettings.fromJson constructor
Parses a AutoDownloadSettings from TDLib JSON.
Implementation
factory AutoDownloadSettings.fromJson(Map<String, dynamic> json) =>
AutoDownloadSettings(
isAutoDownloadEnabled: _readBool(json['is_auto_download_enabled']),
maxPhotoFileSize: _readInt(json['max_photo_file_size']),
maxVideoFileSize: _readInt(json['max_video_file_size']),
maxOtherFileSize: _readInt(json['max_other_file_size']),
videoUploadBitrate: _readInt(json['video_upload_bitrate']),
preloadLargeVideos: _readBool(json['preload_large_videos']),
preloadNextAudio: _readBool(json['preload_next_audio']),
preloadStories: _readBool(json['preload_stories']),
useLessDataForCalls: _readBool(json['use_less_data_for_calls']),
);