RawEventBody constructor

RawEventBody(
  1. Object body
)

Implementation

RawEventBody(this.body)
    : assert(() {
        try {
          jsonEncode(body);
          return true;
        } catch (e) {
          return false;
        }
      }(), 'body should be JSON encodable');