/* 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.
 */
import { WebhookFromJSON, WebhookToJSON, } from './Webhook';
/**
 * Check if a given object implements the ListUserWebhooksResponse interface.
 */
export function instanceOfListUserWebhooksResponse(value) {
    return true;
}
export function ListUserWebhooksResponseFromJSON(json) {
    return ListUserWebhooksResponseFromJSONTyped(json, false);
}
export function ListUserWebhooksResponseFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'page': json['page'] == null ? undefined : (json['page'].map(WebhookFromJSON)),
        'nextPageToken': json['nextPageToken'] == null ? undefined : json['nextPageToken'],
    };
}
export function ListUserWebhooksResponseToJSON(json) {
    return ListUserWebhooksResponseToJSONTyped(json, false);
}
export function ListUserWebhooksResponseToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'page': value['page'] == null ? undefined : (value['page'].map(WebhookToJSON)),
        'nextPageToken': value['nextPageToken'],
    };
}
//# sourceMappingURL=ListUserWebhooksResponse.js.map