toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case LicenseStatus.available:
      return 'AVAILABLE';
    case LicenseStatus.pendingAvailable:
      return 'PENDING_AVAILABLE';
    case LicenseStatus.deactivated:
      return 'DEACTIVATED';
    case LicenseStatus.suspended:
      return 'SUSPENDED';
    case LicenseStatus.expired:
      return 'EXPIRED';
    case LicenseStatus.pendingDelete:
      return 'PENDING_DELETE';
    case LicenseStatus.deleted:
      return 'DELETED';
  }
}