/* tslint:disable */
/* eslint-disable */
/**
 * Synapse REST API
 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
 *
 * The version of the OpenAPI document: v1
 *
 *
 * 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';
import { OIDCClaimsRequestDetailsFromJSON, OIDCClaimsRequestDetailsToJSON, } from './OIDCClaimsRequestDetails';
/**
 * Check if a given object implements the OIDCClaimsRequest interface.
 */
export function instanceOfOIDCClaimsRequest(value) {
    return true;
}
export function OIDCClaimsRequestFromJSON(json) {
    return OIDCClaimsRequestFromJSONTyped(json, false);
}
export function OIDCClaimsRequestFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'userinfo': json['userinfo'] == null ? undefined : (mapValues(json['userinfo'], OIDCClaimsRequestDetailsFromJSON)),
        'id_token': json['id_token'] == null ? undefined : (mapValues(json['id_token'], OIDCClaimsRequestDetailsFromJSON)),
    };
}
export function OIDCClaimsRequestToJSON(json) {
    return OIDCClaimsRequestToJSONTyped(json, false);
}
export function OIDCClaimsRequestToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'userinfo': value['userinfo'] == null ? undefined : (mapValues(value['userinfo'], OIDCClaimsRequestDetailsToJSON)),
        'id_token': value['id_token'] == null ? undefined : (mapValues(value['id_token'], OIDCClaimsRequestDetailsToJSON)),
    };
}
//# sourceMappingURL=OIDCClaimsRequest.js.map