commentTypeListToJson function

List<String> commentTypeListToJson(
  1. List<CommentType>? commentType
)

Implementation

List<String> commentTypeListToJson(List<enums.CommentType>? commentType) {
  if (commentType == null) {
    return [];
  }

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