wallee
Version:
TypeScript/JavaScript client for wallee
37 lines (36 loc) • 1.65 kB
JavaScript
import { LabelFromJSON, } from './Label';
/**
* Check if a given object implements the DebtCollectionCaseDocument interface.
*/
export function instanceOfDebtCollectionCaseDocument(value) {
return true;
}
export function DebtCollectionCaseDocumentFromJSON(json) {
return DebtCollectionCaseDocumentFromJSONTyped(json, false);
}
export 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(LabelFromJSON))),
};
}
export function DebtCollectionCaseDocumentToJSON(json) {
return DebtCollectionCaseDocumentToJSONTyped(json, false);
}
export function DebtCollectionCaseDocumentToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {};
}