toMessageType method
Implementation
MessageType toMessageType() {
switch (this) {
case 'TRANSACTIONAL':
return MessageType.transactional;
case 'PROMOTIONAL':
return MessageType.promotional;
}
throw Exception('$this is not known in enum MessageType');
}