wallee
Version:
TypeScript/JavaScript client for wallee
53 lines (52 loc) • 2.62 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.instanceOfDunningFlowLevel = instanceOfDunningFlowLevel;
exports.DunningFlowLevelFromJSON = DunningFlowLevelFromJSON;
exports.DunningFlowLevelFromJSONTyped = DunningFlowLevelFromJSONTyped;
exports.DunningFlowLevelToJSON = DunningFlowLevelToJSON;
exports.DunningFlowLevelToJSONTyped = DunningFlowLevelToJSONTyped;
const DunningFlow_1 = require("./DunningFlow");
const CreationEntityState_1 = require("./CreationEntityState");
const DocumentTemplate_1 = require("./DocumentTemplate");
/**
* Check if a given object implements the DunningFlowLevel interface.
*/
function instanceOfDunningFlowLevel(value) {
return true;
}
function DunningFlowLevelFromJSON(json) {
return DunningFlowLevelFromJSONTyped(json, false);
}
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 : (0, DocumentTemplate_1.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 : (0, CreationEntityState_1.CreationEntityStateFromJSON)(json['state']),
'flow': json['flow'] == null ? undefined : (0, DunningFlow_1.DunningFlowFromJSON)(json['flow']),
};
}
function DunningFlowLevelToJSON(json) {
return DunningFlowLevelToJSONTyped(json, false);
}
function DunningFlowLevelToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {
'reminderTemplate': (0, DocumentTemplate_1.DocumentTemplateToJSON)(value['reminderTemplate']),
'state': (0, CreationEntityState_1.CreationEntityStateToJSON)(value['state']),
'flow': (0, DunningFlow_1.DunningFlowToJSON)(value['flow']),
};
}