wallee
Version:
TypeScript/JavaScript client for wallee
37 lines (36 loc) • 1.42 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.instanceOfWebhookURLListResponse = instanceOfWebhookURLListResponse;
exports.WebhookURLListResponseFromJSON = WebhookURLListResponseFromJSON;
exports.WebhookURLListResponseFromJSONTyped = WebhookURLListResponseFromJSONTyped;
exports.WebhookURLListResponseToJSON = WebhookURLListResponseToJSON;
exports.WebhookURLListResponseToJSONTyped = WebhookURLListResponseToJSONTyped;
const WebhookUrl_1 = require("./WebhookUrl");
/**
* Check if a given object implements the WebhookURLListResponse interface.
*/
function instanceOfWebhookURLListResponse(value) {
return true;
}
function WebhookURLListResponseFromJSON(json) {
return WebhookURLListResponseFromJSONTyped(json, false);
}
function WebhookURLListResponseFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'data': json['data'] == null ? undefined : (json['data'].map(WebhookUrl_1.WebhookUrlFromJSON)),
'hasMore': json['hasMore'] == null ? undefined : json['hasMore'],
'limit': json['limit'] == null ? undefined : json['limit'],
};
}
function WebhookURLListResponseToJSON(json) {
return WebhookURLListResponseToJSONTyped(json, false);
}
function WebhookURLListResponseToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {};
}