TextHashtag.deserialize constructor

TextHashtag.deserialize(
  1. BinaryReader reader
)

Deserialize.

Implementation

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

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

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