kemproApiV2DevicesIdPeripheralsPeripheralGet method

Future<Response<PeripheralV2>> kemproApiV2DevicesIdPeripheralsPeripheralGet({
  1. required int? id,
  2. required PeripheralV2PathParam? peripheral,
})

Get the peripheral data for the given peripheral of the device with the given ID @param id @param peripheral Path parameter for a peripheral of a device

Implementation

Future<chopper.Response<PeripheralV2>>
    kemproApiV2DevicesIdPeripheralsPeripheralGet({
  required int? id,
  required enums.PeripheralV2PathParam? peripheral,
}) {
  generatedMapping.putIfAbsent(
      PeripheralV2, () => PeripheralV2.fromJsonFactory);

  return _kemproApiV2DevicesIdPeripheralsPeripheralGet(
      id: id, peripheral: peripheral?.value?.toString());
}