AutoDownloadSettings.fromJson constructor

AutoDownloadSettings.fromJson(
  1. Map<String, dynamic> json
)

Parse from a json

Implementation

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