wallee
Version:
TypeScript/JavaScript client for wallee
40 lines (39 loc) • 1.46 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.instanceOfTransactionCommentCreate = instanceOfTransactionCommentCreate;
exports.TransactionCommentCreateFromJSON = TransactionCommentCreateFromJSON;
exports.TransactionCommentCreateFromJSONTyped = TransactionCommentCreateFromJSONTyped;
exports.TransactionCommentCreateToJSON = TransactionCommentCreateToJSON;
exports.TransactionCommentCreateToJSONTyped = TransactionCommentCreateToJSONTyped;
/**
* Check if a given object implements the TransactionCommentCreate interface.
*/
function instanceOfTransactionCommentCreate(value) {
if (!('transaction' in value) || value['transaction'] === undefined)
return false;
return true;
}
function TransactionCommentCreateFromJSON(json) {
return TransactionCommentCreateFromJSONTyped(json, false);
}
function TransactionCommentCreateFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'content': json['content'] == null ? undefined : json['content'],
'transaction': json['transaction'],
};
}
function TransactionCommentCreateToJSON(json) {
return TransactionCommentCreateToJSONTyped(json, false);
}
function TransactionCommentCreateToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {
'content': value['content'],
'transaction': value['transaction'],
};
}