serialize method

String serialize()

Serializes the session to a JSON string.

Implementation

String serialize() => jsonEncode(toMap());