toAdTriggersElement method

AdTriggersElement toAdTriggersElement()

Implementation

AdTriggersElement toAdTriggersElement() {
  switch (this) {
    case 'SPLICE_INSERT':
      return AdTriggersElement.spliceInsert;
    case 'BREAK':
      return AdTriggersElement.$break;
    case 'PROVIDER_ADVERTISEMENT':
      return AdTriggersElement.providerAdvertisement;
    case 'DISTRIBUTOR_ADVERTISEMENT':
      return AdTriggersElement.distributorAdvertisement;
    case 'PROVIDER_PLACEMENT_OPPORTUNITY':
      return AdTriggersElement.providerPlacementOpportunity;
    case 'DISTRIBUTOR_PLACEMENT_OPPORTUNITY':
      return AdTriggersElement.distributorPlacementOpportunity;
    case 'PROVIDER_OVERLAY_PLACEMENT_OPPORTUNITY':
      return AdTriggersElement.providerOverlayPlacementOpportunity;
    case 'DISTRIBUTOR_OVERLAY_PLACEMENT_OPPORTUNITY':
      return AdTriggersElement.distributorOverlayPlacementOpportunity;
  }
  throw Exception('$this is not known in enum AdTriggersElement');
}