setAppStateFromJson method
Set the saved state of the app, usually at the startup of the app.
Implementation
void setAppStateFromJson(String json) {
var map = jsonDecode(
json,
);
for (var p in providers) {
for (var pp in map['providers']) {
if (p.runtimeType.toString() == pp['provider_type']) p.fromMap(pp);
}
}
}