"use strict";
/* 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.
 */
Object.defineProperty(exports, "__esModule", { value: true });
exports.instanceOfOrganizationSourceAuthenticationSchema = instanceOfOrganizationSourceAuthenticationSchema;
exports.OrganizationSourceAuthenticationSchemaFromJSON = OrganizationSourceAuthenticationSchemaFromJSON;
exports.OrganizationSourceAuthenticationSchemaFromJSONTyped = OrganizationSourceAuthenticationSchemaFromJSONTyped;
exports.OrganizationSourceAuthenticationSchemaToJSON = OrganizationSourceAuthenticationSchemaToJSON;
exports.OrganizationSourceAuthenticationSchemaToJSONTyped = OrganizationSourceAuthenticationSchemaToJSONTyped;
const AuthenticationConfigSchema_1 = require("./AuthenticationConfigSchema");
/**
 * Check if a given object implements the OrganizationSourceAuthenticationSchema interface.
 */
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;
}
function OrganizationSourceAuthenticationSchemaFromJSON(json) {
    return OrganizationSourceAuthenticationSchemaFromJSONTyped(json, false);
}
function OrganizationSourceAuthenticationSchemaFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'organizationId': json['organizationId'],
        'sourceKey': json['sourceKey'],
        'authenticationConfig': (0, AuthenticationConfigSchema_1.AuthenticationConfigSchemaFromJSON)(json['authenticationConfig']),
        'isEnabled': json['isEnabled'],
        'dateCreated': (new Date(json['dateCreated'])),
        'dateModified': (new Date(json['dateModified'])),
        'modifiedBy': json['modifiedBy'],
    };
}
function OrganizationSourceAuthenticationSchemaToJSON(json) {
    return OrganizationSourceAuthenticationSchemaToJSONTyped(json, false);
}
function OrganizationSourceAuthenticationSchemaToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'organizationId': value['organizationId'],
        'sourceKey': value['sourceKey'],
        'authenticationConfig': (0, AuthenticationConfigSchema_1.AuthenticationConfigSchemaToJSON)(value['authenticationConfig']),
        'isEnabled': value['isEnabled'],
        'dateCreated': value['dateCreated'].toISOString(),
        'dateModified': value['dateModified'].toISOString(),
        'modifiedBy': value['modifiedBy'],
    };
}
