toValue method
Implementation
String toValue() {
switch (this) {
case ContentType.pdf:
return 'PDF';
case ContentType.html:
return 'HTML';
case ContentType.msWord:
return 'MS_WORD';
case ContentType.plainText:
return 'PLAIN_TEXT';
case ContentType.ppt:
return 'PPT';
}
}