@override Map<String, dynamic> toJson() => <String, Object?>{ 'type': type, 'references': references?.map((f) => f.toJson()).toList(), };