checkAndCallApi<T extends RequestParam, V extends ResponseParam> method

Future<ApiResponse<T, V>> checkAndCallApi<T extends RequestParam, V extends ResponseParam>(
  1. T? p, {
  2. required TransmissionRpcMethod method,
  3. required RpcTag? tag,
  4. required int? timeout,
  5. V responseParamBuilder(
    1. JsonMap rawParam
    )?,
})

Implementation

Future<ApiResponse<T, V>>
    checkAndCallApi<T extends RequestParam, V extends ResponseParam>(
  T? p, {
  required TransmissionRpcMethod method,
  required RpcTag? tag,
  required int? timeout,
  V Function(JsonMap rawParam)? responseParamBuilder,
}) async {
  preCheck(method, p, timeout: timeout);
  return callApi(
    p,
    method: method,
    tag: tag,
    timeout: timeout,
    responseParamBuilder: responseParamBuilder,
  );
}