forked from Henry-Hiles/nexus
wip thing
This commit is contained in:
parent
715bb15738
commit
92eedc92ab
21 changed files with 236 additions and 121 deletions
16
lib/models/paginate.dart
Normal file
16
lib/models/paginate.dart
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
import "package:fast_immutable_collections/fast_immutable_collections.dart";
|
||||
import "package:freezed_annotation/freezed_annotation.dart";
|
||||
import "package:nexus/models/event.dart";
|
||||
part "paginate.freezed.dart";
|
||||
part "paginate.g.dart";
|
||||
|
||||
@freezed
|
||||
abstract class Paginate with _$Paginate {
|
||||
const factory Paginate({
|
||||
required IList<Event> events,
|
||||
required bool hasMore,
|
||||
}) = _Paginate;
|
||||
|
||||
factory Paginate.fromJson(Map<String, Object?> json) =>
|
||||
_$PaginateFromJson(json);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue