/* 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.
 */
/**
 * @export
 */
export const JsonWebKeyRSAConcreteTypeEnum = {
    org_sagebionetworks_repo_model_oauth_JsonWebKeyRSA: 'org.sagebionetworks.repo.model.oauth.JsonWebKeyRSA'
};
/**
 * Check if a given object implements the JsonWebKeyRSA interface.
 */
export function instanceOfJsonWebKeyRSA(value) {
    if (!('concreteType' in value) || value['concreteType'] === undefined)
        return false;
    if (!Object.values(JsonWebKeyRSAConcreteTypeEnum).includes(value["concreteType"])) {
        return false;
    }
    return true;
}
export function JsonWebKeyRSAFromJSON(json) {
    return JsonWebKeyRSAFromJSONTyped(json, false);
}
export function JsonWebKeyRSAFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'kid': json['kid'] == null ? undefined : json['kid'],
        'kty': json['kty'] == null ? undefined : json['kty'],
        'use': json['use'] == null ? undefined : json['use'],
        'concreteType': json['concreteType'],
        'e': json['e'] == null ? undefined : json['e'],
        'n': json['n'] == null ? undefined : json['n'],
    };
}
export function JsonWebKeyRSAToJSON(json) {
    return JsonWebKeyRSAToJSONTyped(json, false);
}
export function JsonWebKeyRSAToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'kid': value['kid'],
        'kty': value['kty'],
        'use': value['use'],
        'concreteType': value['concreteType'],
        'e': value['e'],
        'n': value['n'],
    };
}
//# sourceMappingURL=JsonWebKeyRSA.js.map