toCustomMailFromStatus method
Implementation
CustomMailFromStatus toCustomMailFromStatus() {
switch (this) {
case 'Pending':
return CustomMailFromStatus.pending;
case 'Success':
return CustomMailFromStatus.success;
case 'Failed':
return CustomMailFromStatus.failed;
case 'TemporaryFailure':
return CustomMailFromStatus.temporaryFailure;
}
throw Exception('$this is not known in enum CustomMailFromStatus');
}