AuthBindTempAuthKey.deserialize constructor
AuthBindTempAuthKey.deserialize(
- BinaryReader reader
Deserialize.
Implementation
factory AuthBindTempAuthKey.deserialize(BinaryReader reader) {
// Read [AuthBindTempAuthKey] fields.
final permAuthKeyId = reader.readInt64();
final nonce = reader.readInt64();
final expiresAt = reader.readDateTime();
final encryptedMessage = reader.readBytes();
// Construct [AuthBindTempAuthKey] object.
final returnValue = AuthBindTempAuthKey(
permAuthKeyId: permAuthKeyId,
nonce: nonce,
expiresAt: expiresAt,
encryptedMessage: encryptedMessage,
);
// Now return the deserialized [AuthBindTempAuthKey].
return returnValue;
}