json property

Object? get json

The payload decoded as JSON.

Throws on a payload that is not JSON; use payload when the producer sends something else.

Implementation

Object? get json => jsonDecode(payload);