tagColorListToJson function

List<String> tagColorListToJson(
  1. List<TagColor>? tagColor
)

Implementation

List<String> tagColorListToJson(List<enums.TagColor>? tagColor) {
  if (tagColor == null) {
    return [];
  }

  return tagColor.map((e) => enums.$TagColorMap[e]!).toList();
}