feat : sale out of Province
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
import 'package:freezed_annotation/freezed_annotation.dart';
|
||||
|
||||
part 'pagination_model.freezed.dart';
|
||||
part 'pagination_model.g.dart';
|
||||
|
||||
@Freezed(genericArgumentFactories: true)
|
||||
abstract class PaginationModel<T> with _$PaginationModel<T> {
|
||||
const factory PaginationModel({
|
||||
int? count,
|
||||
String? next,
|
||||
String? previous,
|
||||
List<T>? results,
|
||||
}) = _PaginationModel<T>;
|
||||
|
||||
factory PaginationModel.fromJson(
|
||||
Map<String, dynamic> json,
|
||||
T Function(Object?) fromJsonT,
|
||||
) => _$PaginationModelFromJson(json, fromJsonT);
|
||||
}
|
||||
Reference in New Issue
Block a user