getDeviceTypes method

Future<List<EntitySubtype>> getDeviceTypes({
  1. RequestConfig? requestConfig,
})

Implementation

Future<List<EntitySubtype>> getDeviceTypes(
    {RequestConfig? requestConfig}) async {
  var response = await _tbClient.get<List<dynamic>>('/api/device/types',
      options: defaultHttpOptionsFromConfig(requestConfig));
  return response.data!.map((e) => EntitySubtype.fromJson(e)).toList();
}