toJson method

Map<String, Object?> toJson()

Encodes this value as a JSON object.

Implementation

Map<String, Object?> toJson() => <String, Object?>{
  'outcome': outcome.toJson(),
  'source': source.toJson(),
  'records': records.map((item) => item.toJson()).toList(growable: false),
  'nextCursor': nextCursor == null ? null : nextCursor!,
  'currentCursor': currentCursor == null ? null : currentCursor!,
  'truncated': truncated,
  'truncation': truncation == null ? null : truncation!.toJson(),
  'elapsedMs': elapsedMs,
};