Map<String, dynamic> toJson() { return { 'output': outputPath, 'image_sets': imageSets.map((e) => e.toJson()), }; }