JSONRPCNotification constructor

JSONRPCNotification({
  1. required String method,
  2. Map<String, Object?>? params,
  3. Map<String, Object?>? extra,
})

Implementation

JSONRPCNotification({
  required String method,
  Map<String, Object?>? params,
  Map<String, Object?>? extra,
}) : super.build({
        ...?extra,
        'jsonrpc': '2.0',
        'method': $encode(method),
        if (params != null) 'params': $encode(params),
      });