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