wallee
Version:
TypeScript/JavaScript client for wallee
30 lines (29 loc) • 1.08 kB
JavaScript
import { DeliveryIndicationFromJSON, } from './DeliveryIndication';
/**
* Check if a given object implements the DeliveryIndicationListResponse interface.
*/
export function instanceOfDeliveryIndicationListResponse(value) {
return true;
}
export function DeliveryIndicationListResponseFromJSON(json) {
return DeliveryIndicationListResponseFromJSONTyped(json, false);
}
export function DeliveryIndicationListResponseFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'data': json['data'] == null ? undefined : (json['data'].map(DeliveryIndicationFromJSON)),
'hasMore': json['hasMore'] == null ? undefined : json['hasMore'],
'limit': json['limit'] == null ? undefined : json['limit'],
};
}
export function DeliveryIndicationListResponseToJSON(json) {
return DeliveryIndicationListResponseToJSONTyped(json, false);
}
export function DeliveryIndicationListResponseToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {};
}