/* 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 WebhookVerificationMessageConcreteTypeEnum = {
    org_sagebionetworks_repo_model_webhook_WebhookVerificationMessage: 'org.sagebionetworks.repo.model.webhook.WebhookVerificationMessage'
};
/**
 * Check if a given object implements the WebhookVerificationMessage interface.
 */
export function instanceOfWebhookVerificationMessage(value) {
    if (!('concreteType' in value) || value['concreteType'] === undefined)
        return false;
    if (!Object.values(WebhookVerificationMessageConcreteTypeEnum).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 WebhookVerificationMessageFromJSON(json) {
    return WebhookVerificationMessageFromJSONTyped(json, false);
}
export function WebhookVerificationMessageFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'concreteType': json['concreteType'],
        'messageId': json['messageId'],
        'eventTimestamp': json['eventTimestamp'],
        'verificationCode': json['verificationCode'] == null ? undefined : json['verificationCode'],
    };
}
export function WebhookVerificationMessageToJSON(json) {
    return WebhookVerificationMessageToJSONTyped(json, false);
}
export function WebhookVerificationMessageToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'concreteType': value['concreteType'],
        'messageId': value['messageId'],
        'eventTimestamp': value['eventTimestamp'],
        'verificationCode': value['verificationCode'],
    };
}
//# sourceMappingURL=WebhookVerificationMessage.js.map