AccountVerifyPhone.deserialize constructor
AccountVerifyPhone.deserialize(
- BinaryReader reader
Deserialize.
Implementation
factory AccountVerifyPhone.deserialize(BinaryReader reader) {
// Read [AccountVerifyPhone] fields.
final phoneNumber = reader.readString();
final phoneCodeHash = reader.readString();
final phoneCode = reader.readString();
// Construct [AccountVerifyPhone] object.
final returnValue = AccountVerifyPhone(
phoneNumber: phoneNumber,
phoneCodeHash: phoneCodeHash,
phoneCode: phoneCode,
);
// Now return the deserialized [AccountVerifyPhone].
return returnValue;
}