/* tslint:disable */
/* eslint-disable */
/**
 * Jellyfin API
 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
 *
 * The version of the OpenAPI document: 10.8.9
 * 
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */

import { exists, mapValues } from '../runtime';
/**
 * 
 * @export
 * @interface PinRedeemResult
 */
export interface PinRedeemResult {
    /**
     * Gets or sets a value indicating whether this MediaBrowser.Model.Users.PinRedeemResult is success.
     * @type {boolean}
     * @memberof PinRedeemResult
     */
    success?: boolean;
    /**
     * Gets or sets the users reset.
     * @type {Array<string>}
     * @memberof PinRedeemResult
     */
    usersReset?: Array<string>;
}

/**
 * Check if a given object implements the PinRedeemResult interface.
 */
export function instanceOfPinRedeemResult(value: object): boolean {
    let isInstance = true;

    return isInstance;
}

export function PinRedeemResultFromJSON(json: any): PinRedeemResult {
    return PinRedeemResultFromJSONTyped(json, false);
}

export function PinRedeemResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): PinRedeemResult {
    if ((json === undefined) || (json === null)) {
        return json;
    }
    return {
        
        'success': !exists(json, 'Success') ? undefined : json['Success'],
        'usersReset': !exists(json, 'UsersReset') ? undefined : json['UsersReset'],
    };
}

export function PinRedeemResultToJSON(value?: PinRedeemResult | null): any {
    if (value === undefined) {
        return undefined;
    }
    if (value === null) {
        return null;
    }
    return {
        
        'Success': value.success,
        'UsersReset': value.usersReset,
    };
}

