Files
sendico/frontend/pshared/lib/api/requests/tokens/refresh_rotate.dart
2025-11-13 15:06:15 +03:00

22 lines
602 B
Dart

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);
}