performApptiveLinkForApptiveGridObject<T> method
A simplification to call performApptiveLink
to simplify parsing for ApptiveGridObjects
This provides a custom parsing method to extract single Objects and Lists from Responses that are direct ApptiveGridObjects
Supported types are the keys in _parsingMap
Implementation
Future<T?> performApptiveLinkForApptiveGridObject<T>({
required ApptiveLink link,
bool isRetry = false,
dynamic body,
Map<String, String> headers = const {},
ApptiveGridHalVersion? halVersion,
Map<String, String>? queryParameters,
}) async {
assert(_parsingMap.containsKey(T));
return performApptiveLink<T>(
link: link,
isRetry: isRetry,
body: body,
headers: headers,
halVersion: halVersion,
queryParameters: queryParameters,
parseResponse: _customParser<T>,
);
}