switchStateDTONullableListFromJson function
- List? switchStateDTO, [
- List<
SwitchStateDTO> ? defaultValue
Implementation
List<enums.SwitchStateDTO>? switchStateDTONullableListFromJson(
List? switchStateDTO, [
List<enums.SwitchStateDTO>? defaultValue,
]) {
if (switchStateDTO == null) {
return defaultValue;
}
return switchStateDTO
.map((e) => switchStateDTOFromJson(e.toString()))
.toList();
}