Upgrade to flutter_rust_bridge V2

This commit is contained in:
2024-02-06 20:19:53 +08:00
parent 55f5bac8d9
commit a6c9b46100
46 changed files with 2121 additions and 1213 deletions

View File

@ -8,13 +8,14 @@
class AppPlacardData {
AppPlacardData({
this.version,
this.title,
this.content,
this.link,
this.linkType,
this.alwaysShow,
this.enable,});
this.version,
this.title,
this.content,
this.link,
this.linkType,
this.alwaysShow,
this.enable,
});
AppPlacardData.fromJson(dynamic json) {
version = json['version'];
@ -44,5 +45,4 @@ class AppPlacardData {
map['enable'] = enable;
return map;
}
}
}

View File

@ -8,13 +8,14 @@
class AppWebLocalizationVersionsData {
AppWebLocalizationVersionsData({
this.rsi,
this.uex,
this.addresses,
this.concierge,
this.hangar,
this.orgs,
this.dps,});
this.rsi,
this.uex,
this.addresses,
this.concierge,
this.hangar,
this.orgs,
this.dps,
});
AppWebLocalizationVersionsData.fromJson(dynamic json) {
rsi = json['rsi'];
@ -44,5 +45,4 @@ class AppWebLocalizationVersionsData {
map['dps'] = dps;
return map;
}
}
}

View File

@ -1,8 +1,9 @@
class CountdownFestivalItemData {
CountdownFestivalItemData({
this.name,
this.time,
this.icon,});
this.name,
this.time,
this.icon,
});
CountdownFestivalItemData.fromJson(dynamic json) {
name = json['name'];
@ -20,5 +21,4 @@ class CountdownFestivalItemData {
map['icon'] = icon;
return map;
}
}
}

View File

@ -9,14 +9,15 @@
class GamePerformanceData {
GamePerformanceData({
this.key,
this.name,
this.info,
this.type,
this.max,
this.min,
this.value,
this.group,});
this.key,
this.name,
this.info,
this.type,
this.max,
this.min,
this.value,
this.group,
});
GamePerformanceData.fromJson(dynamic json) {
key = json['key'];
@ -49,5 +50,4 @@ class GamePerformanceData {
map['group'] = group;
return map;
}
}
}

View File

@ -7,12 +7,13 @@
class ScLocalizationData {
ScLocalizationData({
this.enable,
this.versionName,
this.updateAt,
this.info,
this.gameChannel,
this.note,});
this.enable,
this.versionName,
this.updateAt,
this.info,
this.gameChannel,
this.note,
});
ScLocalizationData.fromJson(dynamic json) {
enable = json['enable'];
@ -39,5 +40,4 @@ class ScLocalizationData {
map['note'] = note;
return map;
}
}
}