checkAndCallApi<T extends RequestParam, V extends ResponseParam> method
Future<ApiResponse<T, V> >
checkAndCallApi<T extends RequestParam, V extends ResponseParam>(
- T? p, {
- required TransmissionRpcMethod method,
- required RpcTag? tag,
- required int? timeout,
- V responseParamBuilder(
- 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,
);
}