KotlinJsonRpcResponse

@Serializable
data class KotlinJsonRpcResponse<T>(    val id: Long? = null,     val jsonrpc: String = "2.0",     val result: T? = null,     val error: KotlinJsonRpcError? = null) : JsonRpcResponse<T>

Constructors

Link copied to clipboard
fun <T> KotlinJsonRpcResponse(    id: Long? = null,     jsonrpc: String = "2.0",     result: T? = null,     error: KotlinJsonRpcError? = null)

Functions

Link copied to clipboard
fun asResult(): Result<T?>

Properties

Link copied to clipboard
open override val error: KotlinJsonRpcError? = null
Link copied to clipboard
open override val id: Long? = null
Link copied to clipboard
open override val jsonrpc: String
Link copied to clipboard
open override val result: T? = null