toJson method

Map<String, Object?> toJson()

Encodes this snapshot as JSON-compatible data.

Implementation

Map<String, Object?> toJson() => <String, Object?>{
  'queries': queries.map((query) => query.toJson()).toList(growable: false),
  'mutations': mutations
      .map((mutation) => mutation.toJson())
      .toList(growable: false),
};