import 'package:f0ckapp/models/item.dart'; class Feed { final bool atEnd; final bool atStart; final List items; Feed({required this.atEnd, required this.atStart, required this.items}); factory Feed.fromJson(Map json) { return Feed( atEnd: json['atEnd'] ?? false, atStart: json['atStart'] ?? false, items: (json['items'] as List).map((e) => MediaItem.fromJson(e)).toList(), ); } }