getAllMapsMapsGet method

Future<DataPageMapSchema?> getAllMapsMapsGet({
  1. MapContentType? contentType,
  2. String? contentCode,
  3. int? page,
  4. int? size,
})

Get All Maps

Fetch maps details.

Parameters:

  • MapContentType contentType: Type of content on the map.

  • String contentCode: Content code on the map.

  • int page: Page number

  • int size: Page size

Implementation

Future<DataPageMapSchema?> getAllMapsMapsGet({ MapContentType? contentType, String? contentCode, int? page, int? size, }) async {
  final response = await getAllMapsMapsGetWithHttpInfo( contentType: contentType, contentCode: contentCode, page: page, size: size, );
  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), 'DataPageMapSchema',) as DataPageMapSchema;

  }
  return null;
}