wallee
Version:
TypeScript/JavaScript client for wallee
38 lines (37 loc) • 1.59 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.instanceOfConditionTypeSearchResponse = instanceOfConditionTypeSearchResponse;
exports.ConditionTypeSearchResponseFromJSON = ConditionTypeSearchResponseFromJSON;
exports.ConditionTypeSearchResponseFromJSONTyped = ConditionTypeSearchResponseFromJSONTyped;
exports.ConditionTypeSearchResponseToJSON = ConditionTypeSearchResponseToJSON;
exports.ConditionTypeSearchResponseToJSONTyped = ConditionTypeSearchResponseToJSONTyped;
const ConditionType_1 = require("./ConditionType");
/**
* Check if a given object implements the ConditionTypeSearchResponse interface.
*/
function instanceOfConditionTypeSearchResponse(value) {
return true;
}
function ConditionTypeSearchResponseFromJSON(json) {
return ConditionTypeSearchResponseFromJSONTyped(json, false);
}
function ConditionTypeSearchResponseFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'data': json['data'] == null ? undefined : (json['data'].map(ConditionType_1.ConditionTypeFromJSON)),
'offset': json['offset'] == null ? undefined : json['offset'],
'hasMore': json['hasMore'] == null ? undefined : json['hasMore'],
'limit': json['limit'] == null ? undefined : json['limit'],
};
}
function ConditionTypeSearchResponseToJSON(json) {
return ConditionTypeSearchResponseToJSONTyped(json, false);
}
function ConditionTypeSearchResponseToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {};
}