AccountTmpPassword.deserialize constructor

AccountTmpPassword.deserialize(
  1. BinaryReader reader
)

Deserialize.

Implementation

factory AccountTmpPassword.deserialize(BinaryReader reader) {
  // Read [AccountTmpPassword] fields.
  final tmpPassword = reader.readBytes();
  final validUntil = reader.readInt32();

  // Construct [AccountTmpPassword] object.
  final returnValue = AccountTmpPassword(
    tmpPassword: tmpPassword,
    validUntil: validUntil,
  );

  // Now return the deserialized [AccountTmpPassword].
  return returnValue;
}