wallee
Version:
TypeScript/JavaScript client for wallee
30 lines (29 loc) • 1.01 kB
JavaScript
import { SubscriptionFromJSON, } from './Subscription';
/**
* Check if a given object implements the SubscriptionListResponse interface.
*/
export function instanceOfSubscriptionListResponse(value) {
return true;
}
export function SubscriptionListResponseFromJSON(json) {
return SubscriptionListResponseFromJSONTyped(json, false);
}
export function SubscriptionListResponseFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'data': json['data'] == null ? undefined : (json['data'].map(SubscriptionFromJSON)),
'hasMore': json['hasMore'] == null ? undefined : json['hasMore'],
'limit': json['limit'] == null ? undefined : json['limit'],
};
}
export function SubscriptionListResponseToJSON(json) {
return SubscriptionListResponseToJSONTyped(json, false);
}
export function SubscriptionListResponseToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {};
}