apiV1MatchesGetWithHttpInfo method

Future<Response> apiV1MatchesGetWithHttpInfo({
  1. int? pageSize,
  2. int? pageNumber,
  3. MatchesOrderByEnum? orderBy,
})

Get a page of matches from the collection of all ordered matches.

Note: This method returns the HTTP Response.

Parameters:

  • int pageSize: The maximum number of matches to include on a page.

  • int pageNumber: The page of matches to get.

  • MatchesOrderByEnum orderBy: How to order the collection of matches.

Implementation

Future<Response> apiV1MatchesGetWithHttpInfo({ int? pageSize, int? pageNumber, MatchesOrderByEnum? orderBy, }) async {
  // ignore: prefer_const_declarations
  final path = r'/api/v1/matches';

  // ignore: prefer_final_locals
  Object? postBody;

  final queryParams = <QueryParam>[];
  final headerParams = <String, String>{};
  final formParams = <String, String>{};

  if (pageSize != null) {
    queryParams.addAll(_queryParams('', 'pageSize', pageSize));
  }
  if (pageNumber != null) {
    queryParams.addAll(_queryParams('', 'pageNumber', pageNumber));
  }
  if (orderBy != null) {
    queryParams.addAll(_queryParams('', 'orderBy', orderBy));
  }

  const contentTypes = <String>[];


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