Map<String, dynamic> toJson() { final functions = this.functions; return { if (functions != null) 'functions': functions, }; }