toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case EmailStatus.notSent:
      return 'NotSent';
    case EmailStatus.sent:
      return 'Sent';
    case EmailStatus.failed:
      return 'Failed';
  }
}