toCommentStatusType method
Implementation
CommentStatusType toCommentStatusType() {
switch (this) {
case 'DRAFT':
return CommentStatusType.draft;
case 'PUBLISHED':
return CommentStatusType.published;
case 'DELETED':
return CommentStatusType.deleted;
}
throw Exception('$this is not known in enum CommentStatusType');
}