class PaginationResult { int count; List? data; PaginationResult({ required this.count, this.data, }); factory PaginationResult.fromJson(Map json) => PaginationResult(count: json['count'], data: json['data']); Map toJson() => { 'count': count, 'data': data, }; }