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