v1SharedVoicesGetCategoryNullableListFromJson function

List<V1SharedVoicesGetCategory>? v1SharedVoicesGetCategoryNullableListFromJson(
  1. List? v1SharedVoicesGetCategory, [
  2. List<V1SharedVoicesGetCategory>? defaultValue
])

Implementation

List<enums.V1SharedVoicesGetCategory>?
    v1SharedVoicesGetCategoryNullableListFromJson(
  List? v1SharedVoicesGetCategory, [
  List<enums.V1SharedVoicesGetCategory>? defaultValue,
]) {
  if (v1SharedVoicesGetCategory == null) {
    return defaultValue;
  }

  return v1SharedVoicesGetCategory
      .map((e) => v1SharedVoicesGetCategoryFromJson(e.toString()))
      .toList();
}