toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case OperationType.registerDomain:
      return 'REGISTER_DOMAIN';
    case OperationType.deleteDomain:
      return 'DELETE_DOMAIN';
    case OperationType.transferInDomain:
      return 'TRANSFER_IN_DOMAIN';
    case OperationType.updateDomainContact:
      return 'UPDATE_DOMAIN_CONTACT';
    case OperationType.updateNameserver:
      return 'UPDATE_NAMESERVER';
    case OperationType.changePrivacyProtection:
      return 'CHANGE_PRIVACY_PROTECTION';
    case OperationType.domainLock:
      return 'DOMAIN_LOCK';
    case OperationType.enableAutorenew:
      return 'ENABLE_AUTORENEW';
    case OperationType.disableAutorenew:
      return 'DISABLE_AUTORENEW';
    case OperationType.addDnssec:
      return 'ADD_DNSSEC';
    case OperationType.removeDnssec:
      return 'REMOVE_DNSSEC';
    case OperationType.expireDomain:
      return 'EXPIRE_DOMAIN';
    case OperationType.transferOutDomain:
      return 'TRANSFER_OUT_DOMAIN';
    case OperationType.changeDomainOwner:
      return 'CHANGE_DOMAIN_OWNER';
    case OperationType.renewDomain:
      return 'RENEW_DOMAIN';
    case OperationType.pushDomain:
      return 'PUSH_DOMAIN';
    case OperationType.internalTransferOutDomain:
      return 'INTERNAL_TRANSFER_OUT_DOMAIN';
    case OperationType.internalTransferInDomain:
      return 'INTERNAL_TRANSFER_IN_DOMAIN';
  }
}