wallee
Version:
TypeScript/JavaScript client for wallee
38 lines (37 loc) • 1.77 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.instanceOfProductMeteredFeeTierSearchResponse = instanceOfProductMeteredFeeTierSearchResponse;
exports.ProductMeteredFeeTierSearchResponseFromJSON = ProductMeteredFeeTierSearchResponseFromJSON;
exports.ProductMeteredFeeTierSearchResponseFromJSONTyped = ProductMeteredFeeTierSearchResponseFromJSONTyped;
exports.ProductMeteredFeeTierSearchResponseToJSON = ProductMeteredFeeTierSearchResponseToJSON;
exports.ProductMeteredFeeTierSearchResponseToJSONTyped = ProductMeteredFeeTierSearchResponseToJSONTyped;
const ProductMeteredTierFee_1 = require("./ProductMeteredTierFee");
/**
* Check if a given object implements the ProductMeteredFeeTierSearchResponse interface.
*/
function instanceOfProductMeteredFeeTierSearchResponse(value) {
return true;
}
function ProductMeteredFeeTierSearchResponseFromJSON(json) {
return ProductMeteredFeeTierSearchResponseFromJSONTyped(json, false);
}
function ProductMeteredFeeTierSearchResponseFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'data': json['data'] == null ? undefined : (json['data'].map(ProductMeteredTierFee_1.ProductMeteredTierFeeFromJSON)),
'offset': json['offset'] == null ? undefined : json['offset'],
'hasMore': json['hasMore'] == null ? undefined : json['hasMore'],
'limit': json['limit'] == null ? undefined : json['limit'],
};
}
function ProductMeteredFeeTierSearchResponseToJSON(json) {
return ProductMeteredFeeTierSearchResponseToJSONTyped(json, false);
}
function ProductMeteredFeeTierSearchResponseToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {};
}