toJson method

Map<String, Object?> toJson()

Implementation

Map<String, Object?> toJson() => {
  'label': label,
  'kind': kind,
  if (detail != null) 'detail': detail,
  if (sortText != null) 'sortText': sortText,
  if (documentation != null) 'documentation': documentation!.toJson(),
};