UNPKG

wallee

Version:
45 lines (44 loc) 2.12 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.instanceOfDebtCollectorCondition = instanceOfDebtCollectorCondition; exports.DebtCollectorConditionFromJSON = DebtCollectorConditionFromJSON; exports.DebtCollectorConditionFromJSONTyped = DebtCollectorConditionFromJSONTyped; exports.DebtCollectorConditionToJSON = DebtCollectorConditionToJSON; exports.DebtCollectorConditionToJSONTyped = DebtCollectorConditionToJSONTyped; const CreationEntityState_1 = require("./CreationEntityState"); const DebtCollectorConditionType_1 = require("./DebtCollectorConditionType"); /** * Check if a given object implements the DebtCollectorCondition interface. */ function instanceOfDebtCollectorCondition(value) { return true; } function DebtCollectorConditionFromJSON(json) { return DebtCollectorConditionFromJSONTyped(json, false); } function DebtCollectorConditionFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'linkedSpaceId': json['linkedSpaceId'] == null ? undefined : json['linkedSpaceId'], 'name': json['name'] == null ? undefined : json['name'], 'plannedPurgeDate': json['plannedPurgeDate'] == null ? undefined : (new Date(json['plannedPurgeDate'])), 'id': json['id'] == null ? undefined : json['id'], 'state': json['state'] == null ? undefined : (0, CreationEntityState_1.CreationEntityStateFromJSON)(json['state']), 'type': json['type'] == null ? undefined : (0, DebtCollectorConditionType_1.DebtCollectorConditionTypeFromJSON)(json['type']), 'version': json['version'] == null ? undefined : json['version'], }; } function DebtCollectorConditionToJSON(json) { return DebtCollectorConditionToJSONTyped(json, false); } function DebtCollectorConditionToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { 'state': (0, CreationEntityState_1.CreationEntityStateToJSON)(value['state']), 'type': (0, DebtCollectorConditionType_1.DebtCollectorConditionTypeToJSON)(value['type']), }; }