JSONRPCResponseSerializer

constructor(resultSerializer: KSerializer<T>, errorDataSerializer: KSerializer<E>)(source)

Parameters

resultSerializer

Serializer for the result field.

errorDataSerializer

Serializer for the error's data field.

Type Parameters

T

The type of the result value in JSONRPCResponse.Success.

E

The type of the error data in JSONRPCResponse.Error.