JsonRpcRequest constructor

  1. @JsonSerializable()
const JsonRpcRequest({
  1. required int id,
  2. @Default('2.0') String jsonrpc,
  3. required String method,
  4. dynamic params,
})

Implementation

@JsonSerializable()
const factory JsonRpcRequest({
  required int id,
  @Default('2.0') String jsonrpc,
  required String method,
  dynamic params,
}) = _JsonRpcRequest;