wallee
Version:
TypeScript/JavaScript client for wallee
40 lines (39 loc) • 1.39 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.instanceOfCustomerCommentActive = instanceOfCustomerCommentActive;
exports.CustomerCommentActiveFromJSON = CustomerCommentActiveFromJSON;
exports.CustomerCommentActiveFromJSONTyped = CustomerCommentActiveFromJSONTyped;
exports.CustomerCommentActiveToJSON = CustomerCommentActiveToJSON;
exports.CustomerCommentActiveToJSONTyped = CustomerCommentActiveToJSONTyped;
/**
* Check if a given object implements the CustomerCommentActive interface.
*/
function instanceOfCustomerCommentActive(value) {
if (!('version' in value) || value['version'] === undefined)
return false;
return true;
}
function CustomerCommentActiveFromJSON(json) {
return CustomerCommentActiveFromJSONTyped(json, false);
}
function CustomerCommentActiveFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'content': json['content'] == null ? undefined : json['content'],
'version': json['version'],
};
}
function CustomerCommentActiveToJSON(json) {
return CustomerCommentActiveToJSONTyped(json, false);
}
function CustomerCommentActiveToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {
'content': value['content'],
'version': value['version'],
};
}