payload<T> method

T payload<T>()

Get the payload as a specific type.

Implementation

T payload<T>() {
  return data as T;
}