toDeliverabilityDashboardAccountStatus method

DeliverabilityDashboardAccountStatus toDeliverabilityDashboardAccountStatus()

Implementation

DeliverabilityDashboardAccountStatus
    toDeliverabilityDashboardAccountStatus() {
  switch (this) {
    case 'ACTIVE':
      return DeliverabilityDashboardAccountStatus.active;
    case 'PENDING_EXPIRATION':
      return DeliverabilityDashboardAccountStatus.pendingExpiration;
    case 'DISABLED':
      return DeliverabilityDashboardAccountStatus.disabled;
  }
  throw Exception(
      '$this is not known in enum DeliverabilityDashboardAccountStatus');
}