getGatewayModelsWithHttpInfo method

Future<Response> getGatewayModelsWithHttpInfo([
  1. PopulateFieldsQueryParameters? populateQuery
])

Retrieve a list of gateway models

Note: This method returns the HTTP Response.

Parameters:

Implementation

Future<Response> getGatewayModelsWithHttpInfo(
    [PopulateFieldsQueryParameters? populateQuery]) async {
  // ignore: prefer_const_declarations
  final path = r'/ga/gateway-models';

  // ignore: prefer_final_locals
  Object? postBody;

  final queryParams = <QueryParam>[];
  if (populateQuery != null) {
    final queryMap = populateQuery.toQueryParam();
    queryParams.addAll(
      _queryParams(
        "",
        queryMap.keys.first,
        queryMap.values.first,
      ),
    );
  }
  final headerParams = <String, String>{};
  final formParams = <String, String>{};

  const contentTypes = <String>[];

  return apiClient.invokeAPI(
    path,
    'GET',
    queryParams,
    postBody,
    headerParams,
    formParams,
    contentTypes.isEmpty ? null : contentTypes.first,
  );
}