widgetExpandableListToJson function

List<String> widgetExpandableListToJson(
  1. List<WidgetExpandable>? widgetExpandable
)

Implementation

List<String> widgetExpandableListToJson(
    List<enums.WidgetExpandable>? widgetExpandable) {
  if (widgetExpandable == null) {
    return [];
  }

  return widgetExpandable.map((e) => e.value!).toList();
}