fetchState method
On the client, this should perform a http request to url
to fetch state data from the server.
Implementation
@override
Future<Map<String, dynamic>> fetchState(String url) {
return window
.fetch(url, {
'headers': {'jaspr-mode': 'data-only'}
})
.then((result) => result.text())
.then((data) => jsonDecode(data));
}