AuthRecoverPassword.deserialize constructor
AuthRecoverPassword.deserialize(
- BinaryReader reader
Deserialize.
Implementation
factory AuthRecoverPassword.deserialize(BinaryReader reader) {
// Read [AuthRecoverPassword] fields.
final flags = reader.readInt32();
final code = reader.readString();
final hasNewSettingsField = (flags & 1) != 0;
final newSettings = hasNewSettingsField
? reader.readObject() as AccountPasswordInputSettingsBase
: null;
// Construct [AuthRecoverPassword] object.
final returnValue = AuthRecoverPassword(
code: code,
newSettings: newSettings,
);
// Now return the deserialized [AuthRecoverPassword].
return returnValue;
}