wallee
Version:
TypeScript/JavaScript client for wallee
33 lines (32 loc) • 997 B
JavaScript
/**
* Check if a given object implements the TransactionCommentActive interface.
*/
export function instanceOfTransactionCommentActive(value) {
if (!('version' in value) || value['version'] === undefined)
return false;
return true;
}
export function TransactionCommentActiveFromJSON(json) {
return TransactionCommentActiveFromJSONTyped(json, false);
}
export function TransactionCommentActiveFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'content': json['content'] == null ? undefined : json['content'],
'version': json['version'],
};
}
export function TransactionCommentActiveToJSON(json) {
return TransactionCommentActiveToJSONTyped(json, false);
}
export function TransactionCommentActiveToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {
'content': value['content'],
'version': value['version'],
};
}