2024-09-07 07:36:06 +00:00
|
|
|
import 'package:freezed_annotation/freezed_annotation.dart';
|
|
|
|
|
|
|
|
part 'pagination.g.dart';
|
|
|
|
|
|
|
|
@JsonSerializable()
|
2024-05-18 10:17:16 +00:00
|
|
|
class PaginationResult {
|
|
|
|
int count;
|
|
|
|
List<dynamic>? data;
|
|
|
|
|
|
|
|
PaginationResult({
|
|
|
|
required this.count,
|
|
|
|
this.data,
|
|
|
|
});
|
|
|
|
|
|
|
|
factory PaginationResult.fromJson(Map<String, dynamic> json) =>
|
2024-09-07 07:36:06 +00:00
|
|
|
_$PaginationResultFromJson(json);
|
2024-05-18 10:17:16 +00:00
|
|
|
|
2024-09-07 07:36:06 +00:00
|
|
|
Map<String, dynamic> toJson() => _$PaginationResultToJson(this);
|
2024-05-18 10:17:16 +00:00
|
|
|
}
|