import 'package:json_annotation/json_annotation.dart';

import 'package:pshared/api/requests/tokens/session_id.dart';

part 'refresh_rotate.g.dart';


@JsonSerializable(explicitToJson: true)
class RotateRefreshTokenRequest extends SessionID {
  final String token;
  
  const RotateRefreshTokenRequest({
    required this.token,
    required super.clientId,
    required super.deviceId,
  });

  factory RotateRefreshTokenRequest.fromJson(Map<String, dynamic> json) => _$RotateRefreshTokenRequestFromJson(json);
  @override
  Map<String, dynamic> toJson() => _$RotateRefreshTokenRequestToJson(this);
}
