/* 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 WebhookSynapseEventMessageConcreteTypeEnum = {
    org_sagebionetworks_repo_model_webhook_WebhookSynapseEventMessage: 'org.sagebionetworks.repo.model.webhook.WebhookSynapseEventMessage'
};
/**
 * @export
 */
export const WebhookSynapseEventMessageObjectTypeEnum = {
    ENTITY: 'ENTITY'
};
/**
 * @export
 */
export const WebhookSynapseEventMessageEventTypeEnum = {
    CREATE: 'CREATE',
    UPDATE: 'UPDATE',
    DELETE: 'DELETE'
};
/**
 * Check if a given object implements the WebhookSynapseEventMessage interface.
 */
export function instanceOfWebhookSynapseEventMessage(value) {
    if (!('concreteType' in value) || value['concreteType'] === undefined)
        return false;
    if (!Object.values(WebhookSynapseEventMessageConcreteTypeEnum).includes(value["concreteType"])) {
        return false;
    }
    if (!('messageId' in value) || value['messageId'] === undefined)
        return false;
    if (!('eventTimestamp' in value) || value['eventTimestamp'] === undefined)
        return false;
    return true;
}
export function WebhookSynapseEventMessageFromJSON(json) {
    return WebhookSynapseEventMessageFromJSONTyped(json, false);
}
export function WebhookSynapseEventMessageFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'concreteType': json['concreteType'],
        'messageId': json['messageId'],
        'eventTimestamp': json['eventTimestamp'],
        'objectId': json['objectId'] == null ? undefined : json['objectId'],
        'objectType': json['objectType'] == null ? undefined : json['objectType'],
        'eventType': json['eventType'] == null ? undefined : json['eventType'],
    };
}
export function WebhookSynapseEventMessageToJSON(json) {
    return WebhookSynapseEventMessageToJSONTyped(json, false);
}
export function WebhookSynapseEventMessageToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'concreteType': value['concreteType'],
        'messageId': value['messageId'],
        'eventTimestamp': value['eventTimestamp'],
        'objectId': value['objectId'],
        'objectType': value['objectType'],
        'eventType': value['eventType'],
    };
}
//# sourceMappingURL=WebhookSynapseEventMessage.js.map