toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case DomainAvailability.available:
      return 'AVAILABLE';
    case DomainAvailability.availableReserved:
      return 'AVAILABLE_RESERVED';
    case DomainAvailability.availablePreorder:
      return 'AVAILABLE_PREORDER';
    case DomainAvailability.unavailable:
      return 'UNAVAILABLE';
    case DomainAvailability.unavailablePremium:
      return 'UNAVAILABLE_PREMIUM';
    case DomainAvailability.unavailableRestricted:
      return 'UNAVAILABLE_RESTRICTED';
    case DomainAvailability.reserved:
      return 'RESERVED';
    case DomainAvailability.dontKnow:
      return 'DONT_KNOW';
  }
}