core.Map<core.String, core.dynamic> toJson() => { if (answers != null) 'answers': answers!, if (rewrittenQuery != null) 'rewrittenQuery': rewrittenQuery!, };