UpdateBotWebhookJSON.deserialize constructor

UpdateBotWebhookJSON.deserialize(
  1. BinaryReader reader
)

Deserialize.

Implementation

factory UpdateBotWebhookJSON.deserialize(BinaryReader reader) {
  // Read [UpdateBotWebhookJSON] fields.
  final data = reader.readObject() as DataJSONBase;

  // Construct [UpdateBotWebhookJSON] object.
  final returnValue = UpdateBotWebhookJSON(
    data: data,
  );

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