UpdateChat.deserialize constructor

UpdateChat.deserialize(
  1. BinaryReader reader
)

Deserialize.

Implementation

factory UpdateChat.deserialize(BinaryReader reader) {
  // Read [UpdateChat] fields.
  final chatId = reader.readInt64();

  // Construct [UpdateChat] object.
  final returnValue = UpdateChat(
    chatId: chatId,
  );

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