toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case ComplianceStatus.passed:
      return 'PASSED';
    case ComplianceStatus.warning:
      return 'WARNING';
    case ComplianceStatus.failed:
      return 'FAILED';
    case ComplianceStatus.notAvailable:
      return 'NOT_AVAILABLE';
  }
}