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