wallee
Version:
TypeScript/JavaScript client for wallee
46 lines (45 loc) • 2.23 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.instanceOfTransactionInvoiceComment = instanceOfTransactionInvoiceComment;
exports.TransactionInvoiceCommentFromJSON = TransactionInvoiceCommentFromJSON;
exports.TransactionInvoiceCommentFromJSONTyped = TransactionInvoiceCommentFromJSONTyped;
exports.TransactionInvoiceCommentToJSON = TransactionInvoiceCommentToJSON;
exports.TransactionInvoiceCommentToJSONTyped = TransactionInvoiceCommentToJSONTyped;
const TransactionInvoice_1 = require("./TransactionInvoice");
/**
* Check if a given object implements the TransactionInvoiceComment interface.
*/
function instanceOfTransactionInvoiceComment(value) {
return true;
}
function TransactionInvoiceCommentFromJSON(json) {
return TransactionInvoiceCommentFromJSONTyped(json, false);
}
function TransactionInvoiceCommentFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'linkedSpaceId': json['linkedSpaceId'] == null ? undefined : json['linkedSpaceId'],
'pinned': json['pinned'] == null ? undefined : json['pinned'],
'editedBy': json['editedBy'] == null ? undefined : json['editedBy'],
'createdBy': json['createdBy'] == null ? undefined : json['createdBy'],
'id': json['id'] == null ? undefined : json['id'],
'editedOn': json['editedOn'] == null ? undefined : (new Date(json['editedOn'])),
'createdOn': json['createdOn'] == null ? undefined : (new Date(json['createdOn'])),
'transactionInvoice': json['transactionInvoice'] == null ? undefined : (0, TransactionInvoice_1.TransactionInvoiceFromJSON)(json['transactionInvoice']),
'version': json['version'] == null ? undefined : json['version'],
'content': json['content'] == null ? undefined : json['content'],
};
}
function TransactionInvoiceCommentToJSON(json) {
return TransactionInvoiceCommentToJSONTyped(json, false);
}
function TransactionInvoiceCommentToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {
'transactionInvoice': (0, TransactionInvoice_1.TransactionInvoiceToJSON)(value['transactionInvoice']),
};
}