TextAutoPhone.deserialize constructor

TextAutoPhone.deserialize(
  1. BinaryReader reader
)

Deserialize.

Implementation

factory TextAutoPhone.deserialize(BinaryReader reader) {
  // Read [TextAutoPhone] fields.
  final text = reader.readObject() as RichTextBase;

  // Construct [TextAutoPhone] object.
  final returnValue = TextAutoPhone(text: text);

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