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.variationGroupId,
this.variation?.idVariation ?? "",
this.variation?.reference ?? false,
this.campaignType,
this.slug,
value)
});
}
});
return resultMap;
}