import 'package:json_annotation/json_annotation.dart'; import 'package:pshared/api/responses/base.dart'; import 'package:pshared/api/responses/token.dart'; part 'cursor_page.g.dart'; @JsonSerializable(explicitToJson: true) class CursorPageResponse extends BaseAuthorizedResponse { @JsonKey(name: 'next_cursor') final String? nextCursor; const CursorPageResponse({required super.accessToken, required this.nextCursor}); factory CursorPageResponse.fromJson(Map json) => _$CursorPageResponseFromJson(json); @override Map toJson() => _$CursorPageResponseToJson(this); }