UpdateBotWebhookJSONQuery.deserialize constructor

UpdateBotWebhookJSONQuery.deserialize(
  1. BinaryReader reader
)

Deserialize.

Implementation

factory UpdateBotWebhookJSONQuery.deserialize(BinaryReader reader) {
  // Read [UpdateBotWebhookJSONQuery] fields.
  final queryId = reader.readInt64();
  final data = reader.readObject() as DataJSONBase;
  final timeout = reader.readInt32();

  // Construct [UpdateBotWebhookJSONQuery] object.
  final returnValue = UpdateBotWebhookJSONQuery(
    queryId: queryId,
    data: data,
    timeout: timeout,
  );

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