toValue method

String toValue()

Implementation

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