JsonRpcResult<T extends Object?>.fromJson constructor

JsonRpcResult<T extends Object?>.fromJson(
  1. Map<String, dynamic> json,
  2. T fromJsonT(
    1. Object? json
    )
)

Implementation

factory JsonRpcResult.fromJson(
  Map<String, dynamic> json,
  T Function(Object? json) fromJsonT,
) =>
    JsonRpcResult<T>(
      id: json['id'] as int,
      jsonrpc: json['jsonrpc'] as String,
      result: _$nullableGenericFromJson(json['result'], fromJsonT),
    );