/* tslint:disable */
/* eslint-disable */
/**
 * Hexiosec Transfer API
 * API description for Hexiosec Transfer  ## Testing Requests  Endpoints that require authentication will use your session cookie from the main application if an API key is not provided. This is fine for testing GET requests, however POST/DELETE requests will require a CSRF token when using a session cookie. It is not possible to provide a CSRF token from this page, and so an API key must be used.
 *
 * The version of the OpenAPI document: 0.0.1
 * Contact: support@hexiosec.com
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */
/**
 * Check if a given object implements the OIDCConfig interface.
 */
export function instanceOfOIDCConfig(value) {
    if (!('authority' in value) || value['authority'] === undefined)
        return false;
    if (!('clientId' in value) || value['clientId'] === undefined)
        return false;
    if (!('scope' in value) || value['scope'] === undefined)
        return false;
    if (!('redirectUri' in value) || value['redirectUri'] === undefined)
        return false;
    return true;
}
export function OIDCConfigFromJSON(json) {
    return OIDCConfigFromJSONTyped(json, false);
}
export function OIDCConfigFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        authority: json['authority'],
        clientId: json['client_id'],
        scope: json['scope'],
        redirectUri: json['redirect_uri'],
        registration: json['registration'] == null ? undefined : json['registration'],
    };
}
export function OIDCConfigToJSON(json) {
    return OIDCConfigToJSONTyped(json, false);
}
export function OIDCConfigToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        authority: value['authority'],
        client_id: value['clientId'],
        scope: value['scope'],
        redirect_uri: value['redirectUri'],
        registration: value['registration'],
    };
}
