json property

String json

Converts the route tree into a JSON string

Implementation

String get json {
  final json = _generateJson();
  return jsonEncode(json);
}
void json=(String json)

Reads the JSON string and creates routes and parameters. Parameters that are not still existing in the route tree are safed in the right nodes for later use.

Implementation

set json(String json) {
  parseJson(json: json, parseAllParamsDirectly: false);
}