BotsInvokeWebViewCustomMethod.deserialize constructor

BotsInvokeWebViewCustomMethod.deserialize(
  1. BinaryReader reader
)

Deserialize.

Implementation

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

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

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