Solian/lib/models/pagination.dart

18 lines
357 B
Dart
Raw Normal View History

2024-04-13 11:47:31 +00:00
class PaginationResult {
int count;
List<dynamic>? data;
PaginationResult({
required this.count,
this.data,
});
factory PaginationResult.fromJson(Map<String, dynamic> json) =>
2024-05-01 16:49:38 +00:00
PaginationResult(count: json['count'], data: json['data']);
2024-04-13 11:47:31 +00:00
Map<String, dynamic> toJson() => {
2024-05-01 16:49:38 +00:00
'count': count,
'data': data,
2024-04-13 11:47:31 +00:00
};
}