BotsGetBotRecommendations.deserialize constructor

BotsGetBotRecommendations.deserialize(
  1. BinaryReader reader
)

Deserialize.

Implementation

factory BotsGetBotRecommendations.deserialize(BinaryReader reader) {
  // Read [BotsGetBotRecommendations] fields.
  final bot = reader.readObject() as InputUserBase;

  // Construct [BotsGetBotRecommendations] object.
  final returnValue = BotsGetBotRecommendations(bot: bot);

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