wallee
Version:
TypeScript/JavaScript client for wallee
30 lines (29 loc) • 990 B
JavaScript
import { SubscriberFromJSON, } from './Subscriber';
/**
* Check if a given object implements the SubscriberListResponse interface.
*/
export function instanceOfSubscriberListResponse(value) {
return true;
}
export function SubscriberListResponseFromJSON(json) {
return SubscriberListResponseFromJSONTyped(json, false);
}
export function SubscriberListResponseFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'data': json['data'] == null ? undefined : (json['data'].map(SubscriberFromJSON)),
'hasMore': json['hasMore'] == null ? undefined : json['hasMore'],
'limit': json['limit'] == null ? undefined : json['limit'],
};
}
export function SubscriberListResponseToJSON(json) {
return SubscriberListResponseToJSONTyped(json, false);
}
export function SubscriberListResponseToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {};
}