Solian/lib/models/pagination.dart

20 lines
415 B
Dart
Raw Normal View History

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) =>
_$PaginationResultFromJson(json);
2024-05-18 10:17:16 +00:00
Map<String, dynamic> toJson() => _$PaginationResultToJson(this);
2024-05-18 10:17:16 +00:00
}