UNPKG

wallee

Version:
52 lines (51 loc) 2.73 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.instanceOfDebtCollectorConfigurationCreate = instanceOfDebtCollectorConfigurationCreate; exports.DebtCollectorConfigurationCreateFromJSON = DebtCollectorConfigurationCreateFromJSON; exports.DebtCollectorConfigurationCreateFromJSONTyped = DebtCollectorConfigurationCreateFromJSONTyped; exports.DebtCollectorConfigurationCreateToJSON = DebtCollectorConfigurationCreateToJSON; exports.DebtCollectorConfigurationCreateToJSONTyped = DebtCollectorConfigurationCreateToJSONTyped; const CreationEntityState_1 = require("./CreationEntityState"); const DebtCollectorCondition_1 = require("./DebtCollectorCondition"); /** * Check if a given object implements the DebtCollectorConfigurationCreate interface. */ function instanceOfDebtCollectorConfigurationCreate(value) { if (!('collector' in value) || value['collector'] === undefined) return false; return true; } function DebtCollectorConfigurationCreateFromJSON(json) { return DebtCollectorConfigurationCreateFromJSONTyped(json, false); } function DebtCollectorConfigurationCreateFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'skipReviewEnabled': json['skipReviewEnabled'] == null ? undefined : json['skipReviewEnabled'], 'name': json['name'] == null ? undefined : json['name'], 'enabledSpaceViews': json['enabledSpaceViews'] == null ? undefined : new Set(json['enabledSpaceViews']), 'state': json['state'] == null ? undefined : (0, CreationEntityState_1.CreationEntityStateFromJSON)(json['state']), 'conditions': json['conditions'] == null ? undefined : (json['conditions'].map(DebtCollectorCondition_1.DebtCollectorConditionFromJSON)), 'priority': json['priority'] == null ? undefined : json['priority'], 'collector': json['collector'], }; } function DebtCollectorConfigurationCreateToJSON(json) { return DebtCollectorConfigurationCreateToJSONTyped(json, false); } function DebtCollectorConfigurationCreateToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { 'skipReviewEnabled': value['skipReviewEnabled'], 'name': value['name'], 'enabledSpaceViews': value['enabledSpaceViews'] == null ? undefined : Array.from(value['enabledSpaceViews']), 'state': (0, CreationEntityState_1.CreationEntityStateToJSON)(value['state']), 'conditions': value['conditions'] == null ? undefined : (value['conditions'].map(DebtCollectorCondition_1.DebtCollectorConditionToJSON)), 'priority': value['priority'], 'collector': value['collector'], }; }