/* tslint:disable */
/* eslint-disable */
/**
 * authentik
 * Making authentication simple.
 *
 * The version of the OpenAPI document: 2025.10.0-rc1
 * Contact: hello@goauthentik.io
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */

import { mapValues } from '../runtime';
/**
 * Serializer to redeem a plex token
 * @export
 * @interface PlexTokenRedeemRequest
 */
export interface PlexTokenRedeemRequest {
    /**
     * 
     * @type {string}
     * @memberof PlexTokenRedeemRequest
     */
    plexToken: string;
}

/**
 * Check if a given object implements the PlexTokenRedeemRequest interface.
 */
export function instanceOfPlexTokenRedeemRequest(value: object): value is PlexTokenRedeemRequest {
    if (!('plexToken' in value) || value['plexToken'] === undefined) return false;
    return true;
}

export function PlexTokenRedeemRequestFromJSON(json: any): PlexTokenRedeemRequest {
    return PlexTokenRedeemRequestFromJSONTyped(json, false);
}

export function PlexTokenRedeemRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): PlexTokenRedeemRequest {
    if (json == null) {
        return json;
    }
    return {
        
        'plexToken': json['plex_token'],
    };
}

export function PlexTokenRedeemRequestToJSON(json: any): PlexTokenRedeemRequest {
    return PlexTokenRedeemRequestToJSONTyped(json, false);
}

export function PlexTokenRedeemRequestToJSONTyped(value?: PlexTokenRedeemRequest | null, ignoreDiscriminator: boolean = false): any {
    if (value == null) {
        return value;
    }

    return {
        
        'plex_token': value['plexToken'],
    };
}

