mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-05-04 17:17:48 +08:00
15
lib/models_new/space/space/cheese.dart
Normal file
15
lib/models_new/space/space/cheese.dart
Normal file
@@ -0,0 +1,15 @@
|
||||
import 'package:PiliPlus/models_new/space/space/item.dart';
|
||||
|
||||
class Cheese {
|
||||
int? count;
|
||||
List<Item>? item;
|
||||
|
||||
Cheese({this.count, this.item});
|
||||
|
||||
factory Cheese.fromJson(Map<String, dynamic> json) => Cheese(
|
||||
count: json['count'] as int?,
|
||||
item: (json['item'] as List<dynamic>?)
|
||||
?.map((e) => Item.fromJson(e as Map<String, dynamic>))
|
||||
.toList(),
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user