mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-06-01 00:28:18 +08:00
feat: coin log
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
14
lib/models_new/coin_log/list.dart
Normal file
14
lib/models_new/coin_log/list.dart
Normal file
@@ -0,0 +1,14 @@
|
||||
class CoinLogItem {
|
||||
final String time;
|
||||
final String delta;
|
||||
final String 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'],
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user