getModifications method
Implementation
Map<String, Modification> getModifications() {
Map<String, Modification> result = {};
// construire a partir des flags
this.data?.campaigns?.forEach((campItem) {
campItem.flags?.forEach((keyFalg, valueFlag) {
Modification newModification = Modification(
keyFalg,
campItem.campaignId ?? "",
campItem.campaignName ?? "",
campItem.variationGroupId ?? "",
campItem.variationGroupName ?? "",
campItem.variationId ?? "",
campItem.variationName ?? "",
campItem.isReference ?? false,
campItem.type ?? "",
"slug",
/// Add this slug later
valueFlag);
result.addEntries({keyFalg as String: newModification}.entries);
});
});
return result;
}