getAllModification method
Implementation
Map<String, Modification> getAllModification() {
var ret = getAllModificationsValue();
Map<String, Modification> resultMap = new Map<String, Modification>();
ret.forEach((key, value) {
if (this.variation != null) {
resultMap.addAll({
key: Modification(
key,
this.idCampaign,
this.name,
this.variationGroupId,
this.variationGroupName,
this.variation?.idVariation ?? "",
this.variation?.name ?? "",
this.variation?.reference ?? false,
this.campaignType,
this.slug,
value)
});
}
});
return resultMap;
}