setAssets static method
Implementation
static Future setAssets(
Map<String, DownloadServiceTotalAssetItem> map) async {
Map<String, String> saveJson =
map.map((key, value) => MapEntry(key, json.encode(value.toJson())));
String saveData = json.encode(saveJson);
_saveJson(_assetsKey, saveData);
}