Encodes this value as a JSON object.
Map<String, Object?> toJson() => <String, Object?>{ 'outcome': outcome.toJson(), 'snapshot': snapshot.toJson(), };