wallee
Version:
TypeScript/JavaScript client for wallee
30 lines (29 loc) • 990 B
JavaScript
import { WebhookUrlFromJSON, } from './WebhookUrl';
/**
* Check if a given object implements the WebhookURLListResponse interface.
*/
export function instanceOfWebhookURLListResponse(value) {
return true;
}
export function WebhookURLListResponseFromJSON(json) {
return WebhookURLListResponseFromJSONTyped(json, false);
}
export function WebhookURLListResponseFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'data': json['data'] == null ? undefined : (json['data'].map(WebhookUrlFromJSON)),
'hasMore': json['hasMore'] == null ? undefined : json['hasMore'],
'limit': json['limit'] == null ? undefined : json['limit'],
};
}
export function WebhookURLListResponseToJSON(json) {
return WebhookURLListResponseToJSONTyped(json, false);
}
export function WebhookURLListResponseToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {};
}