/* 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 { V2DoiFromJSON, V2DoiToJSON, } from './V2Doi';
/**
 * @export
 */
export const DoiResponseConcreteTypeEnum = {
    org_sagebionetworks_repo_model_doi_v2_DoiResponse: 'org.sagebionetworks.repo.model.doi.v2.DoiResponse'
};
/**
 * Check if a given object implements the DoiResponse interface.
 */
export function instanceOfDoiResponse(value) {
    if (!('concreteType' in value) || value['concreteType'] === undefined)
        return false;
    if (!Object.values(DoiResponseConcreteTypeEnum).includes(value["concreteType"])) {
        return false;
    }
    return true;
}
export function DoiResponseFromJSON(json) {
    return DoiResponseFromJSONTyped(json, false);
}
export function DoiResponseFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'concreteType': json['concreteType'],
        'doi': json['doi'] == null ? undefined : V2DoiFromJSON(json['doi']),
    };
}
export function DoiResponseToJSON(json) {
    return DoiResponseToJSONTyped(json, false);
}
export function DoiResponseToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'concreteType': value['concreteType'],
        'doi': V2DoiToJSON(value['doi']),
    };
}
//# sourceMappingURL=DoiResponse.js.map