wallee
Version:
TypeScript/JavaScript client for wallee
30 lines (29 loc) • 1.04 kB
JavaScript
import { ProductSetupFeeFromJSON, } from './ProductSetupFee';
/**
* Check if a given object implements the ProductSetupFeeListResponse interface.
*/
export function instanceOfProductSetupFeeListResponse(value) {
return true;
}
export function ProductSetupFeeListResponseFromJSON(json) {
return ProductSetupFeeListResponseFromJSONTyped(json, false);
}
export function ProductSetupFeeListResponseFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'data': json['data'] == null ? undefined : (json['data'].map(ProductSetupFeeFromJSON)),
'hasMore': json['hasMore'] == null ? undefined : json['hasMore'],
'limit': json['limit'] == null ? undefined : json['limit'],
};
}
export function ProductSetupFeeListResponseToJSON(json) {
return ProductSetupFeeListResponseToJSONTyped(json, false);
}
export function ProductSetupFeeListResponseToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {};
}