toJson method

Map<String, Object?> toJson()

Encodes this CockpitCaseIndexEntry as a JSON object.

Implementation

Map<String, Object?> toJson() => <String, Object?>{
  'caseId': caseId,
  if (documentId != null) 'documentId': documentId,
  if (relativePath != null) 'relativePath': relativePath,
  if (title != null) 'title': title,
  if (location != null) 'location': location!.toJson(),
};