getItem method Null safety
- GlpiItemType itemtype,
- int id,
- {bool expandDropdowns = false,
- bool getHateoas = true,
- bool getSha1 = false,
- bool withDevices = false,
- bool withDisks = false,
- bool withSoftwares = false,
- bool withConnections = false,
- bool withNetworkPorts = false,
- bool withInfoComs = false,
- bool withContracts = false,
- bool withDocuments = false,
- bool withTickets = false,
- bool withProblems = false,
- bool withChanges = false,
- bool withNotes = false,
- bool withLogs = false,
- List<
String> ? addKeysNames}
Return an item identified by the id
and of type itemType
Will throw an Exception if the request fails or if the selected id is incorrect.
withDevices
will be ignored if the itemtype
isn't GlpiItemType.Computer,GlpiItemType.NetworkEquipment,GlpiItemType.Peripheral,GlpiItemType.Phone or GlpiItemType.Printer.
withDisks
, withSoftwares
, withConnections
will be ignored if the itemtype
isn't GlpiItemType.Computer.
Reference: https://github.com/glpi-project/glpi/blob/master/apirest.md#get-an-item
Implementation
Future<Map<String, dynamic>> getItem(GlpiItemType itemtype, int id,
{bool expandDropdowns = false,
bool getHateoas = true,
bool getSha1 = false,
bool withDevices = false,
bool withDisks = false,
bool withSoftwares = false,
bool withConnections = false,
bool withNetworkPorts = false,
bool withInfoComs = false,
bool withContracts = false,
bool withDocuments = false,
bool withTickets = false,
bool withProblems = false,
bool withChanges = false,
bool withNotes = false,
bool withLogs = false,
List<String>? addKeysNames});