wallee
Version:
TypeScript/JavaScript client for wallee
29 lines (28 loc) • 913 B
JavaScript
/**
* Check if a given object implements the WebhookListenerEntity interface.
*/
export function instanceOfWebhookListenerEntity(value) {
return true;
}
export function WebhookListenerEntityFromJSON(json) {
return WebhookListenerEntityFromJSONTyped(json, false);
}
export function WebhookListenerEntityFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'name': json['name'] == null ? undefined : json['name'],
'id': json['id'] == null ? undefined : json['id'],
'technicalName': json['technicalName'] == null ? undefined : json['technicalName'],
};
}
export function WebhookListenerEntityToJSON(json) {
return WebhookListenerEntityToJSONTyped(json, false);
}
export function WebhookListenerEntityToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {};
}