
/// DTO representing a pair of JWT tokens from the backend.
class JwtTokenPairDto {
  final String accessToken;
  final String refreshToken;

  JwtTokenPairDto({
    required this.accessToken,
    required this.refreshToken,
  });

  /// Create from JSON response
  factory JwtTokenPairDto.fromJson(Map<String, dynamic> json) {
    return JwtTokenPairDto(
      accessToken: json['accessToken'] as String,
      refreshToken: json['refreshToken'] as String,
    );
  }

  @override
  String toString() {
    return 'JwtTokenPairDto{accessToken: [REDACTED], refreshToken: [REDACTED]}';
  }
}
