Map<String, dynamic> toJson() { final json = <String, dynamic>{}; json['stages'] = stages.map((e) => e.toJson()).toList(); return json; }