wallee
Version:
TypeScript/JavaScript client for wallee
31 lines (30 loc) • 1.23 kB
JavaScript
import { SubscriptionProductComponentGroupFromJSON, } from './SubscriptionProductComponentGroup';
/**
* Check if a given object implements the ProductComponentGroupSearchResponse interface.
*/
export function instanceOfProductComponentGroupSearchResponse(value) {
return true;
}
export function ProductComponentGroupSearchResponseFromJSON(json) {
return ProductComponentGroupSearchResponseFromJSONTyped(json, false);
}
export function ProductComponentGroupSearchResponseFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'data': json['data'] == null ? undefined : (json['data'].map(SubscriptionProductComponentGroupFromJSON)),
'offset': json['offset'] == null ? undefined : json['offset'],
'hasMore': json['hasMore'] == null ? undefined : json['hasMore'],
'limit': json['limit'] == null ? undefined : json['limit'],
};
}
export function ProductComponentGroupSearchResponseToJSON(json) {
return ProductComponentGroupSearchResponseToJSONTyped(json, false);
}
export function ProductComponentGroupSearchResponseToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {};
}