UNPKG

wallee

Version:
38 lines (37 loc) 1.53 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.instanceOfWebhookURLSearchResponse = instanceOfWebhookURLSearchResponse; exports.WebhookURLSearchResponseFromJSON = WebhookURLSearchResponseFromJSON; exports.WebhookURLSearchResponseFromJSONTyped = WebhookURLSearchResponseFromJSONTyped; exports.WebhookURLSearchResponseToJSON = WebhookURLSearchResponseToJSON; exports.WebhookURLSearchResponseToJSONTyped = WebhookURLSearchResponseToJSONTyped; const WebhookUrl_1 = require("./WebhookUrl"); /** * Check if a given object implements the WebhookURLSearchResponse interface. */ function instanceOfWebhookURLSearchResponse(value) { return true; } function WebhookURLSearchResponseFromJSON(json) { return WebhookURLSearchResponseFromJSONTyped(json, false); } function WebhookURLSearchResponseFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'data': json['data'] == null ? undefined : (json['data'].map(WebhookUrl_1.WebhookUrlFromJSON)), 'offset': json['offset'] == null ? undefined : json['offset'], 'hasMore': json['hasMore'] == null ? undefined : json['hasMore'], 'limit': json['limit'] == null ? undefined : json['limit'], }; } function WebhookURLSearchResponseToJSON(json) { return WebhookURLSearchResponseToJSONTyped(json, false); } function WebhookURLSearchResponseToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return {}; }