wallee
Version:
TypeScript/JavaScript client for wallee
31 lines (30 loc) • 1.11 kB
JavaScript
import { ConditionTypeFromJSON, } from './ConditionType';
/**
* Check if a given object implements the ConditionTypeSearchResponse interface.
*/
export function instanceOfConditionTypeSearchResponse(value) {
return true;
}
export function ConditionTypeSearchResponseFromJSON(json) {
return ConditionTypeSearchResponseFromJSONTyped(json, false);
}
export function ConditionTypeSearchResponseFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'data': json['data'] == null ? undefined : (json['data'].map(ConditionTypeFromJSON)),
'offset': json['offset'] == null ? undefined : json['offset'],
'hasMore': json['hasMore'] == null ? undefined : json['hasMore'],
'limit': json['limit'] == null ? undefined : json['limit'],
};
}
export function ConditionTypeSearchResponseToJSON(json) {
return ConditionTypeSearchResponseToJSONTyped(json, false);
}
export function ConditionTypeSearchResponseToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {};
}