wallee
Version:
TypeScript/JavaScript client for wallee
40 lines (39 loc) • 1.57 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.instanceOfTransactionInvoiceCommentActive = instanceOfTransactionInvoiceCommentActive;
exports.TransactionInvoiceCommentActiveFromJSON = TransactionInvoiceCommentActiveFromJSON;
exports.TransactionInvoiceCommentActiveFromJSONTyped = TransactionInvoiceCommentActiveFromJSONTyped;
exports.TransactionInvoiceCommentActiveToJSON = TransactionInvoiceCommentActiveToJSON;
exports.TransactionInvoiceCommentActiveToJSONTyped = TransactionInvoiceCommentActiveToJSONTyped;
/**
* Check if a given object implements the TransactionInvoiceCommentActive interface.
*/
function instanceOfTransactionInvoiceCommentActive(value) {
if (!('version' in value) || value['version'] === undefined)
return false;
return true;
}
function TransactionInvoiceCommentActiveFromJSON(json) {
return TransactionInvoiceCommentActiveFromJSONTyped(json, false);
}
function TransactionInvoiceCommentActiveFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'content': json['content'] == null ? undefined : json['content'],
'version': json['version'],
};
}
function TransactionInvoiceCommentActiveToJSON(json) {
return TransactionInvoiceCommentActiveToJSONTyped(json, false);
}
function TransactionInvoiceCommentActiveToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {
'content': value['content'],
'version': value['version'],
};
}