wallee
Version:
TypeScript/JavaScript client for wallee
31 lines (30 loc) • 1.16 kB
JavaScript
import { SubscriptionProductVersionFromJSON, } from './SubscriptionProductVersion';
/**
* Check if a given object implements the ProductVersionSearchResponse interface.
*/
export function instanceOfProductVersionSearchResponse(value) {
return true;
}
export function ProductVersionSearchResponseFromJSON(json) {
return ProductVersionSearchResponseFromJSONTyped(json, false);
}
export function ProductVersionSearchResponseFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'data': json['data'] == null ? undefined : (json['data'].map(SubscriptionProductVersionFromJSON)),
'offset': json['offset'] == null ? undefined : json['offset'],
'hasMore': json['hasMore'] == null ? undefined : json['hasMore'],
'limit': json['limit'] == null ? undefined : json['limit'],
};
}
export function ProductVersionSearchResponseToJSON(json) {
return ProductVersionSearchResponseToJSONTyped(json, false);
}
export function ProductVersionSearchResponseToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {};
}