fromMap static method

ScopeAutosaveSettings? fromMap(
  1. Map<String, dynamic>? _map
)
override

Construct from Map.

Implementation

static ScopeAutosaveSettings? fromMap(Map<String, dynamic>? _map) {
  if (_map == null) return null;
  var _ = _map["@type"];
  if (_ != CONSTRUCTOR) return null;
  var extra = _map['@extra'];
  var clientId = _map['@clientId'];
  var autosave_photos = _map['autosave_photos']! as bool;
  var autosave_videos = _map['autosave_videos']! as bool;
  var max_video_file_size = _map['max_video_file_size']! as int;
  return ScopeAutosaveSettings(
    extra: extra,
    clientId: clientId,
    autosave_photos: autosave_photos,
    autosave_videos: autosave_videos,
    max_video_file_size: max_video_file_size,
  );
}