kemApiV3DevicesIdGet method

Future<Response<DeviceDetailsDTO>> kemApiV3DevicesIdGet({
  1. required int? id,
  2. DeviceHostDTO? sourceDeviceHost,
})

Get the device details for the device with the given ID.

Will return 404 Not Found if the authenticated user's dealer ID does not match the dealer ID associated with the device. @param id @param sourceDeviceHost The cloud architecture which the device is connected to.

Implementation

Future<chopper.Response<DeviceDetailsDTO>> kemApiV3DevicesIdGet({
  required int? id,
  enums.DeviceHostDTO? sourceDeviceHost,
}) {
  generatedMapping.putIfAbsent(
      DeviceDetailsDTO, () => DeviceDetailsDTO.fromJsonFactory);

  return _kemApiV3DevicesIdGet(
      id: id, sourceDeviceHost: sourceDeviceHost?.value?.toString());
}