This commit is contained in:
sion
2026-04-21 08:09:45 +08:00
parent 0066615054
commit 5264043c21
1831 changed files with 15376 additions and 39973 deletions

View File

@@ -14,6 +14,12 @@ class Coin {
final double? volume24h;
final int status;
final int sort;
final int isPlatform;
final double? todayProfitRate; // 今日盈利比率(平台代币)
final String? tradeStartAm;
final String? tradeEndAm;
final String? tradeStartPm;
final String? tradeEndPm;
Coin({
required this.id,
@@ -30,6 +36,12 @@ class Coin {
this.volume24h,
required this.status,
this.sort = 0,
this.isPlatform = 0,
this.todayProfitRate,
this.tradeStartAm,
this.tradeEndAm,
this.tradeStartPm,
this.tradeEndPm,
});
factory Coin.fromJson(Map<String, dynamic> json) {
@@ -48,6 +60,12 @@ class Coin {
volume24h: (json['volume24h'] as num?)?.toDouble(),
status: json['status'] as int? ?? 1,
sort: json['sort'] as int? ?? 0,
isPlatform: json['isPlatform'] as int? ?? 0,
todayProfitRate: (json['todayProfitRate'] as num?)?.toDouble(),
tradeStartAm: json['tradeStartAm'] as String?,
tradeEndAm: json['tradeEndAm'] as String?,
tradeStartPm: json['tradeStartPm'] as String?,
tradeEndPm: json['tradeEndPm'] as String?,
);
}
@@ -67,6 +85,7 @@ class Coin {
'volume24h': volume24h,
'status': status,
'sort': sort,
'isPlatform': isPlatform,
};
}