SecureValueErrorFrontSide.deserialize constructor
SecureValueErrorFrontSide.deserialize(
- BinaryReader reader
Deserialize.
Implementation
factory SecureValueErrorFrontSide.deserialize(BinaryReader reader) {
// Read [SecureValueErrorFrontSide] fields.
final type = reader.readObject() as SecureValueTypeBase;
final fileHash = reader.readBytes();
final text = reader.readString();
// Construct [SecureValueErrorFrontSide] object.
final returnValue = SecureValueErrorFrontSide(
type: type,
fileHash: fileHash,
text: text,
);
// Now return the deserialized [SecureValueErrorFrontSide].
return returnValue;
}