Map<String, dynamic> toJson() { return <String, dynamic>{ if (workflow != null) r'workflow': workflow, }; }