wallee
Version:
TypeScript/JavaScript client for wallee
33 lines (32 loc) • 957 B
JavaScript
/**
* Check if a given object implements the RefundCommentActive interface.
*/
export function instanceOfRefundCommentActive(value) {
if (!('version' in value) || value['version'] === undefined)
return false;
return true;
}
export function RefundCommentActiveFromJSON(json) {
return RefundCommentActiveFromJSONTyped(json, false);
}
export function RefundCommentActiveFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'content': json['content'] == null ? undefined : json['content'],
'version': json['version'],
};
}
export function RefundCommentActiveToJSON(json) {
return RefundCommentActiveToJSONTyped(json, false);
}
export function RefundCommentActiveToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {
'content': value['content'],
'version': value['version'],
};
}