decode<T extends Message> method

T decode<T extends Message>(
  1. MessageDecoder<T> decoder
)

Decodes the wrapped message into a message of type T.

Implementation

T decode<T extends Message>(MessageDecoder<T> decoder) => decoder(data);