updatePayload abstract method

T updatePayload(
  1. T originalPayload,
  2. bool newValue
)

Implement in subclasses to update the payload with the new value.

Implementation

T updatePayload(T originalPayload, bool newValue);