JsonRpcResult<T extends Object?> constructor

const JsonRpcResult<T extends Object?>({
  1. required int id,
  2. String jsonrpc = '2.0',
  3. T? result,
  4. Object? resultToJson(
    1. T value
    )?,
})

Implementation

const JsonRpcResult({
  required this.id,
  this.jsonrpc = '2.0',
  this.result,
  this.resultToJson,
});