sourceListFromJson function
Implementation
List<enums.Source> sourceListFromJson(
List? source, [
List<enums.Source>? defaultValue,
]) {
if (source == null) {
return defaultValue ?? [];
}
return source.map((e) => sourceFromJson(e.toString())).toList();
}