toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case MailFromDomainStatus.pending:
      return 'PENDING';
    case MailFromDomainStatus.success:
      return 'SUCCESS';
    case MailFromDomainStatus.failed:
      return 'FAILED';
    case MailFromDomainStatus.temporaryFailure:
      return 'TEMPORARY_FAILURE';
  }
}