apiV2PushNotificationListWithHttpInfo method
Performs an HTTP 'GET /api/v2/push_notification/' operation and returns the Response.
Parameters:
Implementation
Future<Response> apiV2PushNotificationListWithHttpInfo({ int? page, int? pageSize, }) async {
// ignore: prefer_const_declarations
final path = r'/api/v2/push_notification/';
// ignore: prefer_final_locals
Object? postBody;
final queryParams = <QueryParam>[];
final headerParams = <String, String>{};
final formParams = <String, String>{};
if (page != null) {
queryParams.addAll(_queryParams('', 'page', page));
}
if (pageSize != null) {
queryParams.addAll(_queryParams('', 'page_size', pageSize));
}
const contentTypes = <String>[];
return apiClient.invokeAPI(
path,
'GET',
queryParams,
postBody,
headerParams,
formParams,
contentTypes.isEmpty ? null : contentTypes.first,
);
}