toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case AdTriggersElement.spliceInsert:
      return 'SPLICE_INSERT';
    case AdTriggersElement.$break:
      return 'BREAK';
    case AdTriggersElement.providerAdvertisement:
      return 'PROVIDER_ADVERTISEMENT';
    case AdTriggersElement.distributorAdvertisement:
      return 'DISTRIBUTOR_ADVERTISEMENT';
    case AdTriggersElement.providerPlacementOpportunity:
      return 'PROVIDER_PLACEMENT_OPPORTUNITY';
    case AdTriggersElement.distributorPlacementOpportunity:
      return 'DISTRIBUTOR_PLACEMENT_OPPORTUNITY';
    case AdTriggersElement.providerOverlayPlacementOpportunity:
      return 'PROVIDER_OVERLAY_PLACEMENT_OPPORTUNITY';
    case AdTriggersElement.distributorOverlayPlacementOpportunity:
      return 'DISTRIBUTOR_OVERLAY_PLACEMENT_OPPORTUNITY';
  }
}