@override Object toJson() { return { if (automaticResources != null) 'automaticResources': automaticResources!.toJson(), }; }