fromJson static method

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

Implementation

static ScopeAutosaveSettings? fromJson(Map<String, dynamic>? json) {
  if (json == null) {
    return null;
  }

  return ScopeAutosaveSettings(
    autosavePhotos: (json['autosave_photos'] as bool?) ?? false,
    autosaveVideos: (json['autosave_videos'] as bool?) ?? false,
    maxVideoFileSize: (json['max_video_file_size'] as int?) ?? 0,
  );
}