SecureValueErrorSelfie.deserialize constructor

SecureValueErrorSelfie.deserialize(
  1. BinaryReader reader
)

Deserialize.

Implementation

factory SecureValueErrorSelfie.deserialize(BinaryReader reader) {
  // Read [SecureValueErrorSelfie] fields.
  final type = reader.readObject() as SecureValueTypeBase;
  final fileHash = reader.readBytes();
  final text = reader.readString();

  // Construct [SecureValueErrorSelfie] object.
  final returnValue = SecureValueErrorSelfie(
    type: type,
    fileHash: fileHash,
    text: text,
  );

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