UNPKG

wallee

Version:
46 lines (45 loc) 2.21 kB
import { DunningFlowFromJSON, DunningFlowToJSON, } from './DunningFlow'; import { CreationEntityStateFromJSON, CreationEntityStateToJSON, } from './CreationEntityState'; import { DocumentTemplateFromJSON, DocumentTemplateToJSON, } from './DocumentTemplate'; /** * Check if a given object implements the DunningFlowLevel interface. */ export function instanceOfDunningFlowLevel(value) { return true; } export function DunningFlowLevelFromJSON(json) { return DunningFlowLevelFromJSONTyped(json, false); } export function DunningFlowLevelFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'period': json['period'] == null ? undefined : json['period'], 'plannedPurgeDate': json['plannedPurgeDate'] == null ? undefined : (new Date(json['plannedPurgeDate'])), 'reminderTemplate': json['reminderTemplate'] == null ? undefined : DocumentTemplateFromJSON(json['reminderTemplate']), 'priority': json['priority'] == null ? undefined : json['priority'], 'title': json['title'] == null ? undefined : json['title'], 'processor': json['processor'] == null ? undefined : json['processor'], 'version': json['version'] == null ? undefined : json['version'], 'linkedSpaceId': json['linkedSpaceId'] == null ? undefined : json['linkedSpaceId'], 'documentText': json['documentText'] == null ? undefined : json['documentText'], 'name': json['name'] == null ? undefined : json['name'], 'id': json['id'] == null ? undefined : json['id'], 'state': json['state'] == null ? undefined : CreationEntityStateFromJSON(json['state']), 'flow': json['flow'] == null ? undefined : DunningFlowFromJSON(json['flow']), }; } export function DunningFlowLevelToJSON(json) { return DunningFlowLevelToJSONTyped(json, false); } export function DunningFlowLevelToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { 'reminderTemplate': DocumentTemplateToJSON(value['reminderTemplate']), 'state': CreationEntityStateToJSON(value['state']), 'flow': DunningFlowToJSON(value['flow']), }; }