/* 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 CreatePayloadSourceAuthenticationSchema
 */
export interface CreatePayloadSourceAuthenticationSchema {
    /**
     * 
     * @type {string}
     * @memberof CreatePayloadSourceAuthenticationSchema
     */
    sourceKey: string;
    /**
     * 
     * @type {string}
     * @memberof CreatePayloadSourceAuthenticationSchema
     */
    modifiedBy: string;
    /**
     * 
     * @type {{ [key: string]: object; }}
     * @memberof CreatePayloadSourceAuthenticationSchema
     */
    securedData: { [key: string]: object; };
    /**
     * 
     * @type {{ [key: string]: object; }}
     * @memberof CreatePayloadSourceAuthenticationSchema
     */
    plainData: { [key: string]: object; };
}

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

export function CreatePayloadSourceAuthenticationSchemaFromJSON(json: any): CreatePayloadSourceAuthenticationSchema {
    return CreatePayloadSourceAuthenticationSchemaFromJSONTyped(json, false);
}

export function CreatePayloadSourceAuthenticationSchemaFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreatePayloadSourceAuthenticationSchema {
    if (json == null) {
        return json;
    }
    return {
        
        'sourceKey': json['sourceKey'],
        'modifiedBy': json['modifiedBy'],
        'securedData': json['securedData'],
        'plainData': json['plainData'],
    };
}

export function CreatePayloadSourceAuthenticationSchemaToJSON(json: any): CreatePayloadSourceAuthenticationSchema {
    return CreatePayloadSourceAuthenticationSchemaToJSONTyped(json, false);
}

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

    return {
        
        'sourceKey': value['sourceKey'],
        'modifiedBy': value['modifiedBy'],
        'securedData': value['securedData'],
        'plainData': value['plainData'],
    };
}

