toMailFromDomainStatus method
Implementation
MailFromDomainStatus toMailFromDomainStatus() {
switch (this) {
case 'PENDING':
return MailFromDomainStatus.pending;
case 'SUCCESS':
return MailFromDomainStatus.success;
case 'FAILED':
return MailFromDomainStatus.failed;
case 'TEMPORARY_FAILURE':
return MailFromDomainStatus.temporaryFailure;
}
throw Exception('$this is not known in enum MailFromDomainStatus');
}