19 lines
617 B
Dart
19 lines
617 B
Dart
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<String, dynamic> json) => _$CursorPageResponseFromJson(json);
|
|
@override
|
|
Map<String, dynamic> toJson() => _$CursorPageResponseToJson(this);
|
|
} |