import 'package:PiliPlus/models_new/space/space/item.dart'; class Cheese { int? count; List? item; Cheese({this.count, this.item}); factory Cheese.fromJson(Map json) => Cheese( count: json['count'] as int?, item: (json['item'] as List?) ?.map((e) => Item.fromJson(e as Map)) .toList(), ); }