toJson method
Implementation
Map<String, Object> toJson() {
List<Map<String, Object>> ret = [];
batch.forEach((element) {
// Remove the cid from the activate json
var elem = (element as Activate).toJson();
elem.remove("cid");
ret.add(elem);
});
return {"cid": envId, "batch": ret};
}