AccountSaveAutoDownloadSettings.deserialize constructor
AccountSaveAutoDownloadSettings.deserialize(
- BinaryReader reader
Deserialize.
Implementation
factory AccountSaveAutoDownloadSettings.deserialize(BinaryReader reader) {
// Read [AccountSaveAutoDownloadSettings] fields.
final flags = reader.readInt32();
final low = (flags & 1) != 0;
final high = (flags & 2) != 0;
final settings = reader.readObject() as AutoDownloadSettingsBase;
// Construct [AccountSaveAutoDownloadSettings] object.
final returnValue = AccountSaveAutoDownloadSettings(
low: low,
high: high,
settings: settings,
);
// Now return the deserialized [AccountSaveAutoDownloadSettings].
return returnValue;
}