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