mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-19 08:36:17 +08:00
16 lines
408 B
Dart
16 lines
408 B
Dart
import 'package:PiliPlus/models_new/coin_log/list.dart';
|
|
|
|
class CoinLogData {
|
|
List<CoinLogItem>? list;
|
|
int? count;
|
|
|
|
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?,
|
|
);
|
|
}
|