wallee
Version:
TypeScript/JavaScript client for wallee
44 lines (43 loc) • 2.11 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.instanceOfDebtCollectionCaseDocument = instanceOfDebtCollectionCaseDocument;
exports.DebtCollectionCaseDocumentFromJSON = DebtCollectionCaseDocumentFromJSON;
exports.DebtCollectionCaseDocumentFromJSONTyped = DebtCollectionCaseDocumentFromJSONTyped;
exports.DebtCollectionCaseDocumentToJSON = DebtCollectionCaseDocumentToJSON;
exports.DebtCollectionCaseDocumentToJSONTyped = DebtCollectionCaseDocumentToJSONTyped;
const Label_1 = require("./Label");
/**
* Check if a given object implements the DebtCollectionCaseDocument interface.
*/
function instanceOfDebtCollectionCaseDocument(value) {
return true;
}
function DebtCollectionCaseDocumentFromJSON(json) {
return DebtCollectionCaseDocumentFromJSONTyped(json, false);
}
function DebtCollectionCaseDocumentFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'linkedSpaceId': json['linkedSpaceId'] == null ? undefined : json['linkedSpaceId'],
'fileName': json['fileName'] == null ? undefined : json['fileName'],
'plannedPurgeDate': json['plannedPurgeDate'] == null ? undefined : (new Date(json['plannedPurgeDate'])),
'debtCollectionCase': json['debtCollectionCase'] == null ? undefined : json['debtCollectionCase'],
'id': json['id'] == null ? undefined : json['id'],
'mimeType': json['mimeType'] == null ? undefined : json['mimeType'],
'createdOn': json['createdOn'] == null ? undefined : (new Date(json['createdOn'])),
'version': json['version'] == null ? undefined : json['version'],
'uniqueId': json['uniqueId'] == null ? undefined : json['uniqueId'],
'labels': json['labels'] == null ? undefined : (new Set(json['labels'].map(Label_1.LabelFromJSON))),
};
}
function DebtCollectionCaseDocumentToJSON(json) {
return DebtCollectionCaseDocumentToJSONTyped(json, false);
}
function DebtCollectionCaseDocumentToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {};
}