mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-20 09:06:36 +08:00
16 lines
405 B
Dart
16 lines
405 B
Dart
import 'package:PiliPlus/models_new/space/space_archive/item.dart';
|
|
|
|
class CoinArchive {
|
|
int? count;
|
|
List<SpaceArchiveItem>? item;
|
|
|
|
CoinArchive({this.count, this.item});
|
|
|
|
factory CoinArchive.fromJson(Map<String, dynamic> json) => CoinArchive(
|
|
count: json['count'] as int?,
|
|
item: (json['item'] as List<dynamic>?)
|
|
?.map((e) => SpaceArchiveItem.fromJson(e))
|
|
.toList(),
|
|
);
|
|
}
|