/* 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 CreateOrUpdateWebhookRequestObjectTypeEnum = {
    ENTITY: 'ENTITY'
};
/**
 * @export
 */
export const CreateOrUpdateWebhookRequestEventTypesEnum = {
    CREATE: 'CREATE',
    UPDATE: 'UPDATE',
    DELETE: 'DELETE'
};
/**
 * Check if a given object implements the CreateOrUpdateWebhookRequest interface.
 */
export function instanceOfCreateOrUpdateWebhookRequest(value) {
    return true;
}
export function CreateOrUpdateWebhookRequestFromJSON(json) {
    return CreateOrUpdateWebhookRequestFromJSONTyped(json, false);
}
export function CreateOrUpdateWebhookRequestFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        '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'],
    };
}
export function CreateOrUpdateWebhookRequestToJSON(json) {
    return CreateOrUpdateWebhookRequestToJSONTyped(json, false);
}
export function CreateOrUpdateWebhookRequestToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'objectId': value['objectId'],
        'objectType': value['objectType'],
        'eventTypes': value['eventTypes'] == null ? undefined : Array.from(value['eventTypes']),
        'invokeEndpoint': value['invokeEndpoint'],
        'isEnabled': value['isEnabled'],
    };
}
//# sourceMappingURL=CreateOrUpdateWebhookRequest.js.map