mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-04-23 20:12:35 +08:00
16 lines
377 B
Dart
16 lines
377 B
Dart
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(),
|
|
);
|
|
}
|