trendV2PathParamListToJson function

List<String> trendV2PathParamListToJson(
  1. List<TrendV2PathParam>? trendV2PathParam
)

Implementation

List<String> trendV2PathParamListToJson(
    List<enums.TrendV2PathParam>? trendV2PathParam) {
  if (trendV2PathParam == null) {
    return [];
  }

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