getMultipleItems method Null safety
- List<
Map< items,GlpiItemType, int> > - {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 multiples items from many types.
You must pass a List
of Map with the following structure a GlpiItemType as the key and the id of the item as the value.
Reference: https://github.com/glpi-project/glpi/blob/master/apirest.md#get-multiple-items.
Implementation
Future<List<Map<String, dynamic>>> getMultipleItems(
List<Map<GlpiItemType, int>> items,
{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});