stopBitsDTOListToJson function
- List<
StopBitsDTO> ? stopBitsDTO
Implementation
List<String> stopBitsDTOListToJson(List<enums.StopBitsDTO>? stopBitsDTO) {
if (stopBitsDTO == null) {
return [];
}
return stopBitsDTO.map((e) => e.value!).toList();
}