toJson method

Map<String, Object?> toJson()

Implementation

Map<String, Object?> toJson() => <String, Object?>{
  'entries': entries.map((e) => e.toJson()).toList(),
  if (nextCursor != null) 'nextCursor': nextCursor,
  if (timeWindow != null) 'timeWindow': timeWindow!.toJson(),
  if (backend != null) 'backend': backend,
  if (redacted != null) 'redacted': redacted,
  if (notes != null) 'notes': notes,
};