JsonRpcResponse<T> constructor

const JsonRpcResponse<T>({
  1. required int id,
  2. @Default('2.0') String jsonrpc,
  3. JsonRpcError? error,
  4. T? result,
})

Implementation

const factory JsonRpcResponse({
  required int id,
  @Default('2.0') String jsonrpc,
  JsonRpcError? error,
  T? result,
}) = _JsonRpcResponse<T>;