Map<String, Object?> toJson() => { 'part': part, 'references': references.map((x) => x.toJson()).toList(), };