toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case CustomMailFromStatus.pending:
      return 'Pending';
    case CustomMailFromStatus.success:
      return 'Success';
    case CustomMailFromStatus.failed:
      return 'Failed';
    case CustomMailFromStatus.temporaryFailure:
      return 'TemporaryFailure';
  }
}