trendV2PathParamListFromJson function

List<TrendV2PathParam> trendV2PathParamListFromJson(
  1. List? trendV2PathParam, [
  2. List<TrendV2PathParam>? defaultValue
])

Implementation

List<enums.TrendV2PathParam> trendV2PathParamListFromJson(
  List? trendV2PathParam, [
  List<enums.TrendV2PathParam>? defaultValue,
]) {
  if (trendV2PathParam == null) {
    return defaultValue ?? [];
  }

  return trendV2PathParam
      .map((e) => trendV2PathParamFromJson(e.toString()))
      .toList();
}