stopBitsDTONullableListFromJson function

List<StopBitsDTO>? stopBitsDTONullableListFromJson(
  1. List? stopBitsDTO, [
  2. List<StopBitsDTO>? defaultValue
])

Implementation

List<enums.StopBitsDTO>? stopBitsDTONullableListFromJson(
  List? stopBitsDTO, [
  List<enums.StopBitsDTO>? defaultValue,
]) {
  if (stopBitsDTO == null) {
    return defaultValue;
  }

  return stopBitsDTO.map((e) => stopBitsDTOFromJson(e.toString())).toList();
}