mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-07-16 22:30:16 +08:00
@@ -7,9 +7,9 @@ class CoinLogData {
|
||||
CoinLogData({this.list, this.count});
|
||||
|
||||
factory CoinLogData.fromJson(Map<String, dynamic> json) => CoinLogData(
|
||||
list: (json['list'] as List<dynamic>?)
|
||||
?.map((e) => CoinLogItem.fromJson(e as Map<String, dynamic>))
|
||||
.toList(),
|
||||
count: json['count'] as int?,
|
||||
);
|
||||
list: (json['list'] as List<dynamic>?)
|
||||
?.map((e) => CoinLogItem.fromJson(e as Map<String, dynamic>))
|
||||
.toList(),
|
||||
count: json['count'] as int?,
|
||||
);
|
||||
}
|
||||
|
||||
@@ -3,12 +3,15 @@ class CoinLogItem {
|
||||
final String delta;
|
||||
final String reason;
|
||||
|
||||
const CoinLogItem(
|
||||
{required this.time, required this.delta, required this.reason});
|
||||
const CoinLogItem({
|
||||
required this.time,
|
||||
required this.delta,
|
||||
required this.reason,
|
||||
});
|
||||
|
||||
factory CoinLogItem.fromJson(Map<String, dynamic> json) => CoinLogItem(
|
||||
time: json['time'],
|
||||
delta: (json['delta'] as num).toString(),
|
||||
reason: json['reason'],
|
||||
);
|
||||
time: json['time'],
|
||||
delta: (json['delta'] as num).toString(),
|
||||
reason: json['reason'],
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user