MessageEntityBlockquote.deserialize constructor

MessageEntityBlockquote.deserialize(
  1. BinaryReader reader
)

Deserialize.

Implementation

factory MessageEntityBlockquote.deserialize(BinaryReader reader) {
  // Read [MessageEntityBlockquote] fields.
  final offset = reader.readInt32();
  final length = reader.readInt32();

  // Construct [MessageEntityBlockquote] object.
  final returnValue = MessageEntityBlockquote(
    offset: offset,
    length: length,
  );

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