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