powerSourceV2NullableListFromJson function
- List? powerSourceV2, [
- List<
PowerSourceV2> ? defaultValue
Implementation
List<enums.PowerSourceV2>? powerSourceV2NullableListFromJson(
List? powerSourceV2, [
List<enums.PowerSourceV2>? defaultValue,
]) {
if (powerSourceV2 == null) {
return defaultValue;
}
return powerSourceV2.map((e) => powerSourceV2FromJson(e.toString())).toList();
}