wallee
Version:
TypeScript/JavaScript client for wallee
30 lines (29 loc) • 1.06 kB
JavaScript
import { ProductPeriodFeeFromJSON, } from './ProductPeriodFee';
/**
* Check if a given object implements the ProductPeriodFeeListResponse interface.
*/
export function instanceOfProductPeriodFeeListResponse(value) {
return true;
}
export function ProductPeriodFeeListResponseFromJSON(json) {
return ProductPeriodFeeListResponseFromJSONTyped(json, false);
}
export function ProductPeriodFeeListResponseFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'data': json['data'] == null ? undefined : (json['data'].map(ProductPeriodFeeFromJSON)),
'hasMore': json['hasMore'] == null ? undefined : json['hasMore'],
'limit': json['limit'] == null ? undefined : json['limit'],
};
}
export function ProductPeriodFeeListResponseToJSON(json) {
return ProductPeriodFeeListResponseToJSONTyped(json, false);
}
export function ProductPeriodFeeListResponseToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {};
}