getMultipleItems method Null safety

Future<List<Map<String, dynamic>>> getMultipleItems(
  1. List<Map<GlpiItemType, int>> items,
  2. {bool expandDropdowns = false,
  3. bool getHateoas = true,
  4. bool getSha1 = false,
  5. bool withDevices = false,
  6. bool withDisks = false,
  7. bool withSoftwares = false,
  8. bool withConnections = false,
  9. bool withNetworkPorts = false,
  10. bool withInfoComs = false,
  11. bool withContracts = false,
  12. bool withDocuments = false,
  13. bool withTickets = false,
  14. bool withProblems = false,
  15. bool withChanges = false,
  16. bool withNotes = false,
  17. bool withLogs = false,
  18. 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});