toValue method
Implementation
String toValue() {
switch (this) {
case MessageType.transactional:
return 'TRANSACTIONAL';
case MessageType.promotional:
return 'PROMOTIONAL';
}
}
String toValue() {
switch (this) {
case MessageType.transactional:
return 'TRANSACTIONAL';
case MessageType.promotional:
return 'PROMOTIONAL';
}
}