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