AccountAutoDownloadSettings.deserialize constructor

AccountAutoDownloadSettings.deserialize(
  1. BinaryReader reader
)

Deserialize.

Implementation

factory AccountAutoDownloadSettings.deserialize(BinaryReader reader) {
  // Read [AccountAutoDownloadSettings] fields.
  final low = reader.readObject() as AutoDownloadSettingsBase;
  final medium = reader.readObject() as AutoDownloadSettingsBase;
  final high = reader.readObject() as AutoDownloadSettingsBase;

  // Construct [AccountAutoDownloadSettings] object.
  final returnValue = AccountAutoDownloadSettings(
    low: low,
    medium: medium,
    high: high,
  );

  // Now return the deserialized [AccountAutoDownloadSettings].
  return returnValue;
}