exportState method

String exportState()

Export state to JSON.

Implementation

String exportState() {
  return jsonEncode(getSnapshot());
}