wallee
Version:
TypeScript/JavaScript client for wallee
37 lines (36 loc) • 1.44 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.instanceOfDunningFlowListResponse = instanceOfDunningFlowListResponse;
exports.DunningFlowListResponseFromJSON = DunningFlowListResponseFromJSON;
exports.DunningFlowListResponseFromJSONTyped = DunningFlowListResponseFromJSONTyped;
exports.DunningFlowListResponseToJSON = DunningFlowListResponseToJSON;
exports.DunningFlowListResponseToJSONTyped = DunningFlowListResponseToJSONTyped;
const DunningFlow_1 = require("./DunningFlow");
/**
* Check if a given object implements the DunningFlowListResponse interface.
*/
function instanceOfDunningFlowListResponse(value) {
return true;
}
function DunningFlowListResponseFromJSON(json) {
return DunningFlowListResponseFromJSONTyped(json, false);
}
function DunningFlowListResponseFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'data': json['data'] == null ? undefined : (json['data'].map(DunningFlow_1.DunningFlowFromJSON)),
'hasMore': json['hasMore'] == null ? undefined : json['hasMore'],
'limit': json['limit'] == null ? undefined : json['limit'],
};
}
function DunningFlowListResponseToJSON(json) {
return DunningFlowListResponseToJSONTyped(json, false);
}
function DunningFlowListResponseToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {};
}