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