/* 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 DoiAssociationObjectTypeEnum = {
    ENTITY: 'ENTITY',
    PORTAL_RESOURCE: 'PORTAL_RESOURCE'
};
/**
 * Check if a given object implements the DoiAssociation interface.
 */
export function instanceOfDoiAssociation(value) {
    return true;
}
export function DoiAssociationFromJSON(json) {
    return DoiAssociationFromJSONTyped(json, false);
}
export function DoiAssociationFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'associationId': json['associationId'] == null ? undefined : json['associationId'],
        'etag': json['etag'] == null ? undefined : json['etag'],
        'doiUri': json['doiUri'] == null ? undefined : json['doiUri'],
        'doiUrl': json['doiUrl'] == null ? undefined : json['doiUrl'],
        'portalId': json['portalId'] == null ? undefined : json['portalId'],
        'objectId': json['objectId'] == null ? undefined : json['objectId'],
        'objectType': json['objectType'] == null ? undefined : json['objectType'],
        'objectVersion': json['objectVersion'] == null ? undefined : json['objectVersion'],
        'associatedBy': json['associatedBy'] == null ? undefined : json['associatedBy'],
        'associatedOn': json['associatedOn'] == null ? undefined : json['associatedOn'],
        'updatedBy': json['updatedBy'] == null ? undefined : json['updatedBy'],
        'updatedOn': json['updatedOn'] == null ? undefined : json['updatedOn'],
    };
}
export function DoiAssociationToJSON(json) {
    return DoiAssociationToJSONTyped(json, false);
}
export function DoiAssociationToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'associationId': value['associationId'],
        'etag': value['etag'],
        'doiUri': value['doiUri'],
        'doiUrl': value['doiUrl'],
        'portalId': value['portalId'],
        'objectId': value['objectId'],
        'objectType': value['objectType'],
        'objectVersion': value['objectVersion'],
        'associatedBy': value['associatedBy'],
        'associatedOn': value['associatedOn'],
        'updatedBy': value['updatedBy'],
        'updatedOn': value['updatedOn'],
    };
}
//# sourceMappingURL=DoiAssociation.js.map