UNPKG

wallee

Version:
40 lines (39 loc) 1.63 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.instanceOfTransactionInvoiceCommentCreate = instanceOfTransactionInvoiceCommentCreate; exports.TransactionInvoiceCommentCreateFromJSON = TransactionInvoiceCommentCreateFromJSON; exports.TransactionInvoiceCommentCreateFromJSONTyped = TransactionInvoiceCommentCreateFromJSONTyped; exports.TransactionInvoiceCommentCreateToJSON = TransactionInvoiceCommentCreateToJSON; exports.TransactionInvoiceCommentCreateToJSONTyped = TransactionInvoiceCommentCreateToJSONTyped; /** * Check if a given object implements the TransactionInvoiceCommentCreate interface. */ function instanceOfTransactionInvoiceCommentCreate(value) { if (!('transactionInvoice' in value) || value['transactionInvoice'] === undefined) return false; return true; } function TransactionInvoiceCommentCreateFromJSON(json) { return TransactionInvoiceCommentCreateFromJSONTyped(json, false); } function TransactionInvoiceCommentCreateFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'content': json['content'] == null ? undefined : json['content'], 'transactionInvoice': json['transactionInvoice'], }; } function TransactionInvoiceCommentCreateToJSON(json) { return TransactionInvoiceCommentCreateToJSONTyped(json, false); } function TransactionInvoiceCommentCreateToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { 'content': value['content'], 'transactionInvoice': value['transactionInvoice'], }; }