webApiIncludeExcludeAllListToJson function

List<String> webApiIncludeExcludeAllListToJson(
  1. List<WebApiIncludeExcludeAll>? webApiIncludeExcludeAll
)

Implementation

List<String> webApiIncludeExcludeAllListToJson(
    List<enums.WebApiIncludeExcludeAll>? webApiIncludeExcludeAll) {
  if (webApiIncludeExcludeAll == null) {
    return [];
  }

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