UNPKG

wallee

Version:
37 lines (36 loc) 1.49 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.instanceOfDebtCollectorListResponse = instanceOfDebtCollectorListResponse; exports.DebtCollectorListResponseFromJSON = DebtCollectorListResponseFromJSON; exports.DebtCollectorListResponseFromJSONTyped = DebtCollectorListResponseFromJSONTyped; exports.DebtCollectorListResponseToJSON = DebtCollectorListResponseToJSON; exports.DebtCollectorListResponseToJSONTyped = DebtCollectorListResponseToJSONTyped; const DebtCollector_1 = require("./DebtCollector"); /** * Check if a given object implements the DebtCollectorListResponse interface. */ function instanceOfDebtCollectorListResponse(value) { return true; } function DebtCollectorListResponseFromJSON(json) { return DebtCollectorListResponseFromJSONTyped(json, false); } function DebtCollectorListResponseFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'data': json['data'] == null ? undefined : (json['data'].map(DebtCollector_1.DebtCollectorFromJSON)), 'hasMore': json['hasMore'] == null ? undefined : json['hasMore'], 'limit': json['limit'] == null ? undefined : json['limit'], }; } function DebtCollectorListResponseToJSON(json) { return DebtCollectorListResponseToJSONTyped(json, false); } function DebtCollectorListResponseToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return {}; }