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