UNPKG

wallee

Version:
30 lines (29 loc) 1.07 kB
import { SubscriptionProductVersionFromJSON, } from './SubscriptionProductVersion'; /** * Check if a given object implements the ProductVersionListResponse interface. */ export function instanceOfProductVersionListResponse(value) { return true; } export function ProductVersionListResponseFromJSON(json) { return ProductVersionListResponseFromJSONTyped(json, false); } export function ProductVersionListResponseFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'data': json['data'] == null ? undefined : (json['data'].map(SubscriptionProductVersionFromJSON)), 'hasMore': json['hasMore'] == null ? undefined : json['hasMore'], 'limit': json['limit'] == null ? undefined : json['limit'], }; } export function ProductVersionListResponseToJSON(json) { return ProductVersionListResponseToJSONTyped(json, false); } export function ProductVersionListResponseToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return {}; }