switchStateV2NullableListFromJson function
- List? switchStateV2, [
- List<
SwitchStateV2> ? defaultValue
Implementation
List<enums.SwitchStateV2>? switchStateV2NullableListFromJson(
List? switchStateV2, [
List<enums.SwitchStateV2>? defaultValue,
]) {
if (switchStateV2 == null) {
return defaultValue;
}
return switchStateV2.map((e) => switchStateV2FromJson(e.toString())).toList();
}