MessagesRequestChatJoinWebView.deserialize constructor

MessagesRequestChatJoinWebView.deserialize(
  1. BinaryReader reader
)

Deserialize.

Implementation

factory MessagesRequestChatJoinWebView.deserialize(BinaryReader reader) {
  // Read [MessagesRequestChatJoinWebView] fields.
  final flags = reader.readInt32();
  final queryId = reader.readInt64();
  final hasThemeParamsField = (flags & 1) != 0;
  final themeParams =
      hasThemeParamsField ? reader.readObject() as DataJSONBase : null;
  final platform = reader.readString();

  // Construct [MessagesRequestChatJoinWebView] object.
  final returnValue = MessagesRequestChatJoinWebView(
    queryId: queryId,
    themeParams: themeParams,
    platform: platform,
  );

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