/* 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 { OIDCClaimsRequestFromJSON, OIDCClaimsRequestToJSON, } from './OIDCClaimsRequest';
/**
 * @export
 */
export const OIDCAuthorizationRequestResponseTypeEnum = {
    code: 'code'
};
/**
 * Check if a given object implements the OIDCAuthorizationRequest interface.
 */
export function instanceOfOIDCAuthorizationRequest(value) {
    return true;
}
export function OIDCAuthorizationRequestFromJSON(json) {
    return OIDCAuthorizationRequestFromJSONTyped(json, false);
}
export function OIDCAuthorizationRequestFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'clientId': json['clientId'] == null ? undefined : json['clientId'],
        'scope': json['scope'] == null ? undefined : json['scope'],
        'claims': json['claims'] == null ? undefined : OIDCClaimsRequestFromJSON(json['claims']),
        'responseType': json['responseType'] == null ? undefined : json['responseType'],
        'redirectUri': json['redirectUri'] == null ? undefined : json['redirectUri'],
        'nonce': json['nonce'] == null ? undefined : json['nonce'],
        'userId': json['userId'] == null ? undefined : json['userId'],
        'authenticatedAt': json['authenticatedAt'] == null ? undefined : json['authenticatedAt'],
        'authorizedAt': json['authorizedAt'] == null ? undefined : json['authorizedAt'],
    };
}
export function OIDCAuthorizationRequestToJSON(json) {
    return OIDCAuthorizationRequestToJSONTyped(json, false);
}
export function OIDCAuthorizationRequestToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'clientId': value['clientId'],
        'scope': value['scope'],
        'claims': OIDCClaimsRequestToJSON(value['claims']),
        'responseType': value['responseType'],
        'redirectUri': value['redirectUri'],
        'nonce': value['nonce'],
        'userId': value['userId'],
        'authenticatedAt': value['authenticatedAt'],
        'authorizedAt': value['authorizedAt'],
    };
}
//# sourceMappingURL=OIDCAuthorizationRequest.js.map