initSetting method
Implementation
void initSetting(MistyStartModel params) {
init();
LocalServerCacheBinderSetting().setBaseHost(params.baseHost);
Map<String, dynamic> assets = {};
params.assets
.map(
(e) => {
e.keys.first: {'compress': e.values.first},
},
)
.forEach((j) {
assets.addAll(j);
});
LocalServerClientConfig localServerClientConfig =
LocalServerClientConfig.fromJson({
'option': params.options.map((e) => e.toJson()).toList(),
'assets': assets,
'basics': params.basics.toJson(),
});
prepareManager(localServerClientConfig);
startLocalServer();
}