apiV2SchoolsupplyJobsList method

Future<PaginatedTutorJobPostViewList?> apiV2SchoolsupplyJobsList({
  1. int? level,
  2. List<String>? ordering,
  3. int? page,
  4. int? pricingMax,
  5. int? pricingMin,
  6. String? ref,
  7. int? subject,
})

Interface to use multiple serializers depends on requested action

Parameters:

  • int level:

  • List<String> ordering: Ordering * price - Price * -price - Price (descending) * experience - Experience * -experience - Experience (descending) * score - Score * -score - Score (descending)

  • int page: A page number within the paginated result set.

  • int pricingMax:

  • int pricingMin:

  • String ref:

  • int subject:

Implementation

Future<PaginatedTutorJobPostViewList?> apiV2SchoolsupplyJobsList({ int? level, List<String>? ordering, int? page, int? pricingMax, int? pricingMin, String? ref, int? subject, }) async {
  final response = await apiV2SchoolsupplyJobsListWithHttpInfo( level: level, ordering: ordering, page: page, pricingMax: pricingMax, pricingMin: pricingMin, ref: ref, subject: subject, );
  if (response.statusCode >= HttpStatus.badRequest) {
    throw ApiException(response.statusCode, await _decodeBodyBytes(response));
  }
  // When a remote server returns no body with a status of 204, we shall not decode it.
  // At the time of writing this, `dart:convert` will throw an "Unexpected end of input"
  // FormatException when trying to decode an empty string.
  if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) {
    return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'PaginatedTutorJobPostViewList',) as PaginatedTutorJobPostViewList;

  }
  return null;
}