toPatchComplianceDataState method

PatchComplianceDataState toPatchComplianceDataState()

Implementation

PatchComplianceDataState toPatchComplianceDataState() {
  switch (this) {
    case 'INSTALLED':
      return PatchComplianceDataState.installed;
    case 'INSTALLED_OTHER':
      return PatchComplianceDataState.installedOther;
    case 'INSTALLED_PENDING_REBOOT':
      return PatchComplianceDataState.installedPendingReboot;
    case 'INSTALLED_REJECTED':
      return PatchComplianceDataState.installedRejected;
    case 'MISSING':
      return PatchComplianceDataState.missing;
    case 'NOT_APPLICABLE':
      return PatchComplianceDataState.notApplicable;
    case 'FAILED':
      return PatchComplianceDataState.failed;
  }
  throw Exception('$this is not known in enum PatchComplianceDataState');
}