to json
Map<String, dynamic> toJson() { return { 'name': name, 'files': files, 'structs': structs.map((e) => e.toJson()).toList(), }; }