BotsSendCustomRequest.deserialize constructor

BotsSendCustomRequest.deserialize(
  1. BinaryReader reader
)

Deserialize.

Implementation

factory BotsSendCustomRequest.deserialize(BinaryReader reader) {
  // Read [BotsSendCustomRequest] fields.
  final customMethod = reader.readString();
  final params = reader.readObject() as DataJSONBase;

  // Construct [BotsSendCustomRequest] object.
  final returnValue = BotsSendCustomRequest(
    customMethod: customMethod,
    params: params,
  );

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