getSubItems method Null safety
Return the sub-items of subItemType
the item identified by the mainItemId
and of type mainItemtype
Will throw an Exception if the request fails or if the selected id is incorrect.
Reference: https://github.com/glpi-project/glpi/blob/master/apirest.md#get-sub-items
Implementation
Future<List<Map<String, dynamic>>> getSubItems(
GlpiItemType mainItemtype, int mainItemId, GlpiItemType subItemType,
{bool expandDropdowns = false,
bool getHateoas = true,
bool onlyId = false,
int rangeStart = 0,
int rangeLimit = 50,
String sort = 'id',
String order = 'ASC',
List? addKeysNames});