UNPKG

wallee

Version:
36 lines (35 loc) 1.54 kB
/** * Check if a given object implements the DebtCollectionReceipt interface. */ export function instanceOfDebtCollectionReceipt(value) { return true; } export function DebtCollectionReceiptFromJSON(json) { return DebtCollectionReceiptFromJSONTyped(json, false); } export function DebtCollectionReceiptFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'linkedSpaceId': json['linkedSpaceId'] == null ? undefined : json['linkedSpaceId'], 'amount': json['amount'] == null ? undefined : json['amount'], 'createdBy': json['createdBy'] == null ? undefined : json['createdBy'], 'plannedPurgeDate': json['plannedPurgeDate'] == null ? undefined : (new Date(json['plannedPurgeDate'])), 'externalId': json['externalId'] == null ? undefined : json['externalId'], 'debtCollectionCase': json['debtCollectionCase'] == null ? undefined : json['debtCollectionCase'], 'id': json['id'] == null ? undefined : json['id'], 'source': json['source'] == null ? undefined : json['source'], 'createdOn': json['createdOn'] == null ? undefined : (new Date(json['createdOn'])), 'version': json['version'] == null ? undefined : json['version'], }; } export function DebtCollectionReceiptToJSON(json) { return DebtCollectionReceiptToJSONTyped(json, false); } export function DebtCollectionReceiptToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return {}; }