/* tslint:disable */
/* eslint-disable */
/**
 * UCX Proxy
 * A single use API for the UCX Proxy.
 *
 * The version of the OpenAPI document: 0.0.12
 * Contact: customersuccess@equisoft.com
 *
 * 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';
/**
 * 
 * @export
 * @interface ToggleSourceAuthenticationSchema
 */
export interface ToggleSourceAuthenticationSchema {
    /**
     * 
     * @type {boolean}
     * @memberof ToggleSourceAuthenticationSchema
     */
    isEnabled: boolean;
    /**
     * 
     * @type {string}
     * @memberof ToggleSourceAuthenticationSchema
     */
    modifiedBy: string;
}

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

export function ToggleSourceAuthenticationSchemaFromJSON(json: any): ToggleSourceAuthenticationSchema {
    return ToggleSourceAuthenticationSchemaFromJSONTyped(json, false);
}

export function ToggleSourceAuthenticationSchemaFromJSONTyped(json: any, ignoreDiscriminator: boolean): ToggleSourceAuthenticationSchema {
    if (json == null) {
        return json;
    }
    return {
        
        'isEnabled': json['isEnabled'],
        'modifiedBy': json['modifiedBy'],
    };
}

export function ToggleSourceAuthenticationSchemaToJSON(json: any): ToggleSourceAuthenticationSchema {
    return ToggleSourceAuthenticationSchemaToJSONTyped(json, false);
}

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

    return {
        
        'isEnabled': value['isEnabled'],
        'modifiedBy': value['modifiedBy'],
    };
}

