AccountSendConfirmPhoneCode.deserialize constructor
AccountSendConfirmPhoneCode.deserialize(
- BinaryReader reader
Deserialize.
Implementation
factory AccountSendConfirmPhoneCode.deserialize(BinaryReader reader) {
// Read [AccountSendConfirmPhoneCode] fields.
final hash = reader.readString();
final settings = reader.readObject() as CodeSettingsBase;
// Construct [AccountSendConfirmPhoneCode] object.
final returnValue = AccountSendConfirmPhoneCode(
hash: hash,
settings: settings,
);
// Now return the deserialized [AccountSendConfirmPhoneCode].
return returnValue;
}