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