webApiIncludeExcludeAllNullableListFromJson function

List<WebApiIncludeExcludeAll>? webApiIncludeExcludeAllNullableListFromJson(
  1. List? webApiIncludeExcludeAll, [
  2. List<WebApiIncludeExcludeAll>? defaultValue
])

Implementation

List<enums.WebApiIncludeExcludeAll>?
    webApiIncludeExcludeAllNullableListFromJson(
  List? webApiIncludeExcludeAll, [
  List<enums.WebApiIncludeExcludeAll>? defaultValue,
]) {
  if (webApiIncludeExcludeAll == null) {
    return defaultValue;
  }

  return webApiIncludeExcludeAll
      .map((e) => webApiIncludeExcludeAllFromJson(e.toString()))
      .toList();
}