UNPKG

wallee

Version:
31 lines (30 loc) 1.18 kB
import { SubscriptionVersionFromJSON, } from './SubscriptionVersion'; /** * Check if a given object implements the SubscriptionVersionSearchResponse interface. */ export function instanceOfSubscriptionVersionSearchResponse(value) { return true; } export function SubscriptionVersionSearchResponseFromJSON(json) { return SubscriptionVersionSearchResponseFromJSONTyped(json, false); } export function SubscriptionVersionSearchResponseFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'data': json['data'] == null ? undefined : (json['data'].map(SubscriptionVersionFromJSON)), 'offset': json['offset'] == null ? undefined : json['offset'], 'hasMore': json['hasMore'] == null ? undefined : json['hasMore'], 'limit': json['limit'] == null ? undefined : json['limit'], }; } export function SubscriptionVersionSearchResponseToJSON(json) { return SubscriptionVersionSearchResponseToJSONTyped(json, false); } export function SubscriptionVersionSearchResponseToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return {}; }