toExpirationStatus method

ExpirationStatus toExpirationStatus()

Implementation

ExpirationStatus toExpirationStatus() {
  switch (this) {
    case 'Enabled':
      return ExpirationStatus.enabled;
    case 'Disabled':
      return ExpirationStatus.disabled;
  }
  throw Exception('$this is not known in enum ExpirationStatus');
}