UNPKG

wallee

Version:
41 lines (40 loc) 2.06 kB
import { CreationEntityStateFromJSON, CreationEntityStateToJSON, } from './CreationEntityState'; import { DebtCollectorConditionFromJSON, DebtCollectorConditionToJSON, } from './DebtCollectorCondition'; /** * Check if a given object implements the AbstractDebtCollectorConfigurationUpdate interface. */ export function instanceOfAbstractDebtCollectorConfigurationUpdate(value) { return true; } export function AbstractDebtCollectorConfigurationUpdateFromJSON(json) { return AbstractDebtCollectorConfigurationUpdateFromJSONTyped(json, false); } export function AbstractDebtCollectorConfigurationUpdateFromJSONTyped(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 : CreationEntityStateFromJSON(json['state']), 'conditions': json['conditions'] == null ? undefined : (json['conditions'].map(DebtCollectorConditionFromJSON)), 'priority': json['priority'] == null ? undefined : json['priority'], }; } export function AbstractDebtCollectorConfigurationUpdateToJSON(json) { return AbstractDebtCollectorConfigurationUpdateToJSONTyped(json, false); } export function AbstractDebtCollectorConfigurationUpdateToJSONTyped(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': CreationEntityStateToJSON(value['state']), 'conditions': value['conditions'] == null ? undefined : (value['conditions'].map(DebtCollectorConditionToJSON)), 'priority': value['priority'], }; }