getAllNpcsItemsNpcsItemsGetWithHttpInfo method
Get All Npcs Items
Retrieve the list of all NPC items.
Note: This method returns the HTTP Response.
Parameters:
Implementation
Future<Response> getAllNpcsItemsNpcsItemsGetWithHttpInfo({
String? code,
String? npc,
String? currency,
int? page,
int? size,
}) async {
// ignore: prefer_const_declarations
final path = r'/npcs/items';
// ignore: prefer_final_locals
Object? postBody;
final queryParams = <QueryParam>[];
final headerParams = <String, String>{};
final formParams = <String, String>{};
if (code != null) {
queryParams.addAll(_queryParams('', 'code', code));
}
if (npc != null) {
queryParams.addAll(_queryParams('', 'npc', npc));
}
if (currency != null) {
queryParams.addAll(_queryParams('', 'currency', currency));
}
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,
);
}