valueDecoder method

  1. @override
Supply valueDecoder(
  1. Map<String, dynamic> value
)
override

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
Supply valueDecoder(
  final Map<String, dynamic> value,
) =>
    Supply.fromJson(value);