CampaignCache.fromModification constructor

CampaignCache.fromModification(
  1. Modification modification
)

Implementation

CampaignCache.fromModification(Modification modification) {
  this.campaignId = modification.campaignId;
  this.variationGroupId = modification.variationGroupId;
  this.variationId = modification.variationId;
  this.type = modification.campaignType;
  this.isReference = modification.isReference;
  this.activated = false; // For the moment is false
  // Let the flag to null , we need it for the check later
  this.campaignName = modification.campaignName;
  this.variationGroupName = modification.variationGroupName;
  this.variationName = modification.variationName;
}