commentTypeListFromJson function

List<CommentType> commentTypeListFromJson(
  1. List? commentType
)

Implementation

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

  return commentType.map((e) => commentTypeFromJson(e.toString())).toList();
}