toJson method

dynamic toJson()

Returns the JSON representation of the snapshot

This will return the unconverted content of the snapshot. In theory, this could contain non JSON values. The user should make sure that any value set to a snapshot is valid JSON or can be converted to JSON with a toJson method.

Implementation

dynamic toJson() => _snapshot.as();