wallee
Version:
TypeScript/JavaScript client for wallee
31 lines (30 loc) • 1.1 kB
JavaScript
import { SubscriptionFromJSON, } from './Subscription';
/**
* Check if a given object implements the SubscriptionSearchResponse interface.
*/
export function instanceOfSubscriptionSearchResponse(value) {
return true;
}
export function SubscriptionSearchResponseFromJSON(json) {
return SubscriptionSearchResponseFromJSONTyped(json, false);
}
export function SubscriptionSearchResponseFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'data': json['data'] == null ? undefined : (json['data'].map(SubscriptionFromJSON)),
'offset': json['offset'] == null ? undefined : json['offset'],
'hasMore': json['hasMore'] == null ? undefined : json['hasMore'],
'limit': json['limit'] == null ? undefined : json['limit'],
};
}
export function SubscriptionSearchResponseToJSON(json) {
return SubscriptionSearchResponseToJSONTyped(json, false);
}
export function SubscriptionSearchResponseToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {};
}