/* 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 { AuthenticationConfigSchemaFromJSON, AuthenticationConfigSchemaToJSON, } from './AuthenticationConfigSchema';
/**
 * Check if a given object implements the OrganizationSourceAuthenticationSchema interface.
 */
export function instanceOfOrganizationSourceAuthenticationSchema(value) {
    if (!('organizationId' in value) || value['organizationId'] === undefined)
        return false;
    if (!('sourceKey' in value) || value['sourceKey'] === undefined)
        return false;
    if (!('authenticationConfig' in value) || value['authenticationConfig'] === undefined)
        return false;
    if (!('isEnabled' in value) || value['isEnabled'] === undefined)
        return false;
    if (!('dateCreated' in value) || value['dateCreated'] === undefined)
        return false;
    if (!('dateModified' in value) || value['dateModified'] === undefined)
        return false;
    if (!('modifiedBy' in value) || value['modifiedBy'] === undefined)
        return false;
    return true;
}
export function OrganizationSourceAuthenticationSchemaFromJSON(json) {
    return OrganizationSourceAuthenticationSchemaFromJSONTyped(json, false);
}
export function OrganizationSourceAuthenticationSchemaFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'organizationId': json['organizationId'],
        'sourceKey': json['sourceKey'],
        'authenticationConfig': AuthenticationConfigSchemaFromJSON(json['authenticationConfig']),
        'isEnabled': json['isEnabled'],
        'dateCreated': (new Date(json['dateCreated'])),
        'dateModified': (new Date(json['dateModified'])),
        'modifiedBy': json['modifiedBy'],
    };
}
export function OrganizationSourceAuthenticationSchemaToJSON(json) {
    return OrganizationSourceAuthenticationSchemaToJSONTyped(json, false);
}
export function OrganizationSourceAuthenticationSchemaToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'organizationId': value['organizationId'],
        'sourceKey': value['sourceKey'],
        'authenticationConfig': AuthenticationConfigSchemaToJSON(value['authenticationConfig']),
        'isEnabled': value['isEnabled'],
        'dateCreated': value['dateCreated'].toISOString(),
        'dateModified': value['dateModified'].toISOString(),
        'modifiedBy': value['modifiedBy'],
    };
}
