widgetExpandableListFromJson function
List<WidgetExpandable>
widgetExpandableListFromJson(
- List? widgetExpandable, [
- List<
WidgetExpandable> ? defaultValue
Implementation
List<enums.WidgetExpandable> widgetExpandableListFromJson(
List? widgetExpandable, [
List<enums.WidgetExpandable>? defaultValue,
]) {
if (widgetExpandable == null) {
return defaultValue ?? [];
}
return widgetExpandable
.map((e) => widgetExpandableFromJson(e.toString()))
.toList();
}