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