toCustomMailFromStatus method

CustomMailFromStatus toCustomMailFromStatus()

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');
}