toMessageFormat method
Implementation
MessageFormat toMessageFormat() {
switch (this) {
case 'RAW':
return MessageFormat.raw;
case 'JSON':
return MessageFormat.json;
}
throw Exception('$this is not known in enum MessageFormat');
}