decoder method

  1. @override
TransactionInfo<Object>? decoder(
  1. Map<String, dynamic>? value
)
override

Decodes the result property of a successful JSON RPC response.

final response = {"jsonrpc":"2.0", "result":197469478, "id":1}
decoder(response["result"])

Implementation

@override
TransactionInfo? decoder(
  final Map<String, dynamic>? value,
) =>
    value != null ? TransactionInfo.fromJson(value) : null;