valueDecoder method

  1. @override
u64? valueDecoder(
  1. u64? value
)
inherited

Decodes the value property of a successful JSON RPC response-context.

final response = {"jsonrpc":"2.0", "result":{"context": {"slot": 1}, "value": 0}, "id":1}
decoder(response["result"]["value"])

Implementation

@override
T valueDecoder(final T value) => value;