getAllMapsMapsGetWithHttpInfo method
Future<Response>
getAllMapsMapsGetWithHttpInfo({
- MapContentType? contentType,
- String? contentCode,
- int? page,
- int? size,
Get All Maps
Fetch maps details.
Note: This method returns the HTTP Response.
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<Response> getAllMapsMapsGetWithHttpInfo({
MapContentType? contentType,
String? contentCode,
int? page,
int? size,
}) async {
// ignore: prefer_const_declarations
final path = r'/maps';
// ignore: prefer_final_locals
Object? postBody;
final queryParams = <QueryParam>[];
final headerParams = <String, String>{};
final formParams = <String, String>{};
if (contentType != null) {
queryParams.addAll(_queryParams('', 'content_type', contentType));
}
if (contentCode != null) {
queryParams.addAll(_queryParams('', 'content_code', contentCode));
}
if (page != null) {
queryParams.addAll(_queryParams('', 'page', page));
}
if (size != null) {
queryParams.addAll(_queryParams('', 'size', size));
}
const contentTypes = <String>[];
return apiClient.invokeAPI(
path,
'GET',
queryParams,
postBody,
headerParams,
formParams,
contentTypes.isEmpty ? null : contentTypes.first,
);
}