toJSONString method

String toJSONString()

Implementation

String toJSONString() => jsonEncode({
  'type': "request",
  'data': {
    'id': id,
    'method': method,
    'params': params,
  },
});