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