stopBitsDTOListFromJson function
- List? stopBitsDTO, [
- List<
StopBitsDTO> ? defaultValue
Implementation
List<enums.StopBitsDTO> stopBitsDTOListFromJson(
List? stopBitsDTO, [
List<enums.StopBitsDTO>? defaultValue,
]) {
if (stopBitsDTO == null) {
return defaultValue ?? [];
}
return stopBitsDTO.map((e) => stopBitsDTOFromJson(e.toString())).toList();
}