UNPKG

wallee

Version:
30 lines (29 loc) 1.1 kB
import { SubscriptionProductRetirementFromJSON, } from './SubscriptionProductRetirement'; /** * Check if a given object implements the ProductRetirementListResponse interface. */ export function instanceOfProductRetirementListResponse(value) { return true; } export function ProductRetirementListResponseFromJSON(json) { return ProductRetirementListResponseFromJSONTyped(json, false); } export function ProductRetirementListResponseFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'data': json['data'] == null ? undefined : (json['data'].map(SubscriptionProductRetirementFromJSON)), 'hasMore': json['hasMore'] == null ? undefined : json['hasMore'], 'limit': json['limit'] == null ? undefined : json['limit'], }; } export function ProductRetirementListResponseToJSON(json) { return ProductRetirementListResponseToJSONTyped(json, false); } export function ProductRetirementListResponseToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return {}; }