JsonRpcRequest<T>.fromJson constructor

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

Implementation

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