InvokeWithTakeout.deserialize constructor

InvokeWithTakeout.deserialize(
  1. BinaryReader reader
)

Deserialize.

Implementation

factory InvokeWithTakeout.deserialize(BinaryReader reader) {
  // Read [InvokeWithTakeout] fields.
  final takeoutId = reader.readInt64();
  final query = reader.readObject() as TlMethod;

  // Construct [InvokeWithTakeout] object.
  final returnValue = InvokeWithTakeout(
    takeoutId: takeoutId,
    query: query,
  );

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