/* 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.
 */
/**
 * Check if a given object implements the OIDCTokenResponse interface.
 */
export function instanceOfOIDCTokenResponse(value) {
    return true;
}
export function OIDCTokenResponseFromJSON(json) {
    return OIDCTokenResponseFromJSONTyped(json, false);
}
export function OIDCTokenResponseFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'access_token': json['access_token'] == null ? undefined : json['access_token'],
        'refresh_token': json['refresh_token'] == null ? undefined : json['refresh_token'],
        'id_token': json['id_token'] == null ? undefined : json['id_token'],
        'token_type': json['token_type'] == null ? undefined : json['token_type'],
        'expires_in': json['expires_in'] == null ? undefined : json['expires_in'],
    };
}
export function OIDCTokenResponseToJSON(json) {
    return OIDCTokenResponseToJSONTyped(json, false);
}
export function OIDCTokenResponseToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'access_token': value['access_token'],
        'refresh_token': value['refresh_token'],
        'id_token': value['id_token'],
        'token_type': value['token_type'],
        'expires_in': value['expires_in'],
    };
}
//# sourceMappingURL=OIDCTokenResponse.js.map