v1SharedVoicesGetCategoryListFromJson function

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

Implementation

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

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