performApptiveLinkForApptiveGridObject<T> method

Future<T?> performApptiveLinkForApptiveGridObject<T>({
  1. required ApptiveLink link,
  2. bool isRetry = false,
  3. dynamic body,
  4. Map<String, String> headers = const {},
  5. ApptiveGridHalVersion? halVersion,
  6. Map<String, String>? queryParameters,
})

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>,
  );
}