toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case AdsOnDeliveryRestrictions.none:
      return 'NONE';
    case AdsOnDeliveryRestrictions.restricted:
      return 'RESTRICTED';
    case AdsOnDeliveryRestrictions.unrestricted:
      return 'UNRESTRICTED';
    case AdsOnDeliveryRestrictions.both:
      return 'BOTH';
  }
}