dtoToSubDeviceConnectionType function

SubDeviceConnectionType? dtoToSubDeviceConnectionType(
  1. SubDeviceConnectionTypeDTO? type
)

Implementation

SubDeviceConnectionType? dtoToSubDeviceConnectionType(
  SubDeviceConnectionTypeDTO? type,
) {
  return switch (type) {
    SubDeviceConnectionTypeDTO.hardwired => SubDeviceConnectionType.hardwired,
    SubDeviceConnectionTypeDTO.ism => SubDeviceConnectionType.ism,
    SubDeviceConnectionTypeDTO.swaggerGeneratedUnknown || null => null,
  };
}