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