UNPKG

wallee

Version:
30 lines (29 loc) 993 B
import { SubscriptionProductFromJSON, } from './SubscriptionProduct'; /** * Check if a given object implements the ProductListResponse interface. */ export function instanceOfProductListResponse(value) { return true; } export function ProductListResponseFromJSON(json) { return ProductListResponseFromJSONTyped(json, false); } export function ProductListResponseFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'data': json['data'] == null ? undefined : (json['data'].map(SubscriptionProductFromJSON)), 'hasMore': json['hasMore'] == null ? undefined : json['hasMore'], 'limit': json['limit'] == null ? undefined : json['limit'], }; } export function ProductListResponseToJSON(json) { return ProductListResponseToJSONTyped(json, false); } export function ProductListResponseToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return {}; }