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