wallee
Version:
TypeScript/JavaScript client for wallee
30 lines (29 loc) • 990 B
JavaScript
import { ChargeFlowFromJSON, } from './ChargeFlow';
/**
* Check if a given object implements the ChargeFlowListResponse interface.
*/
export function instanceOfChargeFlowListResponse(value) {
return true;
}
export function ChargeFlowListResponseFromJSON(json) {
return ChargeFlowListResponseFromJSONTyped(json, false);
}
export function ChargeFlowListResponseFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'data': json['data'] == null ? undefined : (json['data'].map(ChargeFlowFromJSON)),
'hasMore': json['hasMore'] == null ? undefined : json['hasMore'],
'limit': json['limit'] == null ? undefined : json['limit'],
};
}
export function ChargeFlowListResponseToJSON(json) {
return ChargeFlowListResponseToJSONTyped(json, false);
}
export function ChargeFlowListResponseToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {};
}