wallee
Version:
TypeScript/JavaScript client for wallee
33 lines (32 loc) • 1.12 kB
JavaScript
/**
* Check if a given object implements the TransactionInvoiceCommentCreate interface.
*/
export function instanceOfTransactionInvoiceCommentCreate(value) {
if (!('transactionInvoice' in value) || value['transactionInvoice'] === undefined)
return false;
return true;
}
export function TransactionInvoiceCommentCreateFromJSON(json) {
return TransactionInvoiceCommentCreateFromJSONTyped(json, false);
}
export function TransactionInvoiceCommentCreateFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'content': json['content'] == null ? undefined : json['content'],
'transactionInvoice': json['transactionInvoice'],
};
}
export function TransactionInvoiceCommentCreateToJSON(json) {
return TransactionInvoiceCommentCreateToJSONTyped(json, false);
}
export function TransactionInvoiceCommentCreateToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {
'content': value['content'],
'transactionInvoice': value['transactionInvoice'],
};
}