wallee
Version:
TypeScript/JavaScript client for wallee
30 lines (29 loc) • 1 kB
JavaScript
import { DunningFlowFromJSON, } from './DunningFlow';
/**
* Check if a given object implements the DunningFlowListResponse interface.
*/
export function instanceOfDunningFlowListResponse(value) {
return true;
}
export function DunningFlowListResponseFromJSON(json) {
return DunningFlowListResponseFromJSONTyped(json, false);
}
export function DunningFlowListResponseFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'data': json['data'] == null ? undefined : (json['data'].map(DunningFlowFromJSON)),
'hasMore': json['hasMore'] == null ? undefined : json['hasMore'],
'limit': json['limit'] == null ? undefined : json['limit'],
};
}
export function DunningFlowListResponseToJSON(json) {
return DunningFlowListResponseToJSONTyped(json, false);
}
export function DunningFlowListResponseToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {};
}