UNPKG

wallee

Version:
31 lines (30 loc) 1.18 kB
import { SubscriptionProductComponentFromJSON, } from './SubscriptionProductComponent'; /** * Check if a given object implements the ProductComponentSearchResponse interface. */ export function instanceOfProductComponentSearchResponse(value) { return true; } export function ProductComponentSearchResponseFromJSON(json) { return ProductComponentSearchResponseFromJSONTyped(json, false); } export function ProductComponentSearchResponseFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'data': json['data'] == null ? undefined : (json['data'].map(SubscriptionProductComponentFromJSON)), 'offset': json['offset'] == null ? undefined : json['offset'], 'hasMore': json['hasMore'] == null ? undefined : json['hasMore'], 'limit': json['limit'] == null ? undefined : json['limit'], }; } export function ProductComponentSearchResponseToJSON(json) { return ProductComponentSearchResponseToJSONTyped(json, false); } export function ProductComponentSearchResponseToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return {}; }