toJson method

Map<String, Object?> toJson()

Implementation

Map<String, Object?> toJson() => {
  'mode': mode.wireName,
  'cursor': cursor,
  'source': source?.wireName,
  'retainedSnapshots': retainedSnapshots,
  'retainedBytes': retainedBytes,
  'snapshotLimit': snapshotLimit,
  'byteLimit': byteLimit,
  'baselineCursor': baselineCursor,
  'oldestCursor': oldestCursor,
  'newestCursor': newestCursor,
  'latestCursor': latestCursor,
  'lastUnavailable': lastUnavailable?.toJson(),
  'importCandidate': importCandidate?.toJson(),
};