mirror of
https://github.com/ImranR98/Obtainium.git
synced 2025-10-26 03:03:45 +01:00
@@ -368,11 +368,13 @@ class App {
|
|||||||
otherAssetUrls: otherAssetUrls);
|
otherAssetUrls: otherAssetUrls);
|
||||||
|
|
||||||
factory App.fromJson(Map<String, dynamic> json) {
|
factory App.fromJson(Map<String, dynamic> json) {
|
||||||
|
Map<String, dynamic> originalJSON = new Map.from(json);
|
||||||
try {
|
try {
|
||||||
json = appJSONCompatibilityModifiers(json);
|
json = appJSONCompatibilityModifiers(json);
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
LogsProvider()
|
json = originalJSON;
|
||||||
.add('Error running JSON compat modifiers: ${e.toString()}');
|
LogsProvider().add(
|
||||||
|
'Error running JSON compat modifiers: ${e.toString()}: ${originalJSON.toString()}');
|
||||||
}
|
}
|
||||||
return App(
|
return App(
|
||||||
json['id'] as String,
|
json['id'] as String,
|
||||||
|
|||||||
Reference in New Issue
Block a user