Serializes this JsonRpcResponse to a JSON map.
Map<String, dynamic> toJson(Object? Function(T) toJsonT) => throw _privateConstructorUsedError;