stopBitsDTOListToJson function

List<String> stopBitsDTOListToJson(
  1. List<StopBitsDTO>? stopBitsDTO
)

Implementation

List<String> stopBitsDTOListToJson(List<enums.StopBitsDTO>? stopBitsDTO) {
  if (stopBitsDTO == null) {
    return [];
  }

  return stopBitsDTO.map((e) => e.value!).toList();
}