/* 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 WebhookObjectTypeEnum = {
    ENTITY: 'ENTITY'
};
/**
 * @export
 */
export const WebhookEventTypesEnum = {
    CREATE: 'CREATE',
    UPDATE: 'UPDATE',
    DELETE: 'DELETE'
};
/**
 * @export
 */
export const WebhookVerificationStatusEnum = {
    PENDING: 'PENDING',
    CODE_SENT: 'CODE_SENT',
    FAILED: 'FAILED',
    REVOKED: 'REVOKED',
    VERIFIED: 'VERIFIED'
};
/**
 * Check if a given object implements the Webhook interface.
 */
export function instanceOfWebhook(value) {
    return true;
}
export function WebhookFromJSON(json) {
    return WebhookFromJSONTyped(json, false);
}
export function WebhookFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'id': json['id'] == null ? undefined : json['id'],
        'createdBy': json['createdBy'] == null ? undefined : json['createdBy'],
        'createdOn': json['createdOn'] == null ? undefined : json['createdOn'],
        'modifiedOn': json['modifiedOn'] == null ? undefined : json['modifiedOn'],
        'objectId': json['objectId'] == null ? undefined : json['objectId'],
        'objectType': json['objectType'] == null ? undefined : json['objectType'],
        'eventTypes': json['eventTypes'] == null ? undefined : new Set(json['eventTypes']),
        'invokeEndpoint': json['invokeEndpoint'] == null ? undefined : json['invokeEndpoint'],
        'isEnabled': json['isEnabled'] == null ? undefined : json['isEnabled'],
        'verificationStatus': json['verificationStatus'] == null ? undefined : json['verificationStatus'],
        'verificationMsg': json['verificationMsg'] == null ? undefined : json['verificationMsg'],
    };
}
export function WebhookToJSON(json) {
    return WebhookToJSONTyped(json, false);
}
export function WebhookToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'id': value['id'],
        'createdBy': value['createdBy'],
        'createdOn': value['createdOn'],
        'modifiedOn': value['modifiedOn'],
        'objectId': value['objectId'],
        'objectType': value['objectType'],
        'eventTypes': value['eventTypes'] == null ? undefined : Array.from(value['eventTypes']),
        'invokeEndpoint': value['invokeEndpoint'],
        'isEnabled': value['isEnabled'],
        'verificationStatus': value['verificationStatus'],
        'verificationMsg': value['verificationMsg'],
    };
}
//# sourceMappingURL=Webhook.js.map