toAdsOnDeliveryRestrictions method

AdsOnDeliveryRestrictions toAdsOnDeliveryRestrictions()

Implementation

AdsOnDeliveryRestrictions toAdsOnDeliveryRestrictions() {
  switch (this) {
    case 'NONE':
      return AdsOnDeliveryRestrictions.none;
    case 'RESTRICTED':
      return AdsOnDeliveryRestrictions.restricted;
    case 'UNRESTRICTED':
      return AdsOnDeliveryRestrictions.unrestricted;
    case 'BOTH':
      return AdsOnDeliveryRestrictions.both;
  }
  throw Exception('$this is not known in enum AdsOnDeliveryRestrictions');
}