wallee
Version:
TypeScript/JavaScript client for wallee
30 lines (29 loc) • 1.15 kB
JavaScript
import { SubscriptionProductComponentGroupFromJSON, } from './SubscriptionProductComponentGroup';
/**
* Check if a given object implements the ProductComponentGroupListResponse interface.
*/
export function instanceOfProductComponentGroupListResponse(value) {
return true;
}
export function ProductComponentGroupListResponseFromJSON(json) {
return ProductComponentGroupListResponseFromJSONTyped(json, false);
}
export function ProductComponentGroupListResponseFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'data': json['data'] == null ? undefined : (json['data'].map(SubscriptionProductComponentGroupFromJSON)),
'hasMore': json['hasMore'] == null ? undefined : json['hasMore'],
'limit': json['limit'] == null ? undefined : json['limit'],
};
}
export function ProductComponentGroupListResponseToJSON(json) {
return ProductComponentGroupListResponseToJSONTyped(json, false);
}
export function ProductComponentGroupListResponseToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {};
}