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