wallee
Version:
TypeScript/JavaScript client for wallee
38 lines (37 loc) • 1.68 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.instanceOfProductMeteredFeeSearchResponse = instanceOfProductMeteredFeeSearchResponse;
exports.ProductMeteredFeeSearchResponseFromJSON = ProductMeteredFeeSearchResponseFromJSON;
exports.ProductMeteredFeeSearchResponseFromJSONTyped = ProductMeteredFeeSearchResponseFromJSONTyped;
exports.ProductMeteredFeeSearchResponseToJSON = ProductMeteredFeeSearchResponseToJSON;
exports.ProductMeteredFeeSearchResponseToJSONTyped = ProductMeteredFeeSearchResponseToJSONTyped;
const ProductMeteredFee_1 = require("./ProductMeteredFee");
/**
* Check if a given object implements the ProductMeteredFeeSearchResponse interface.
*/
function instanceOfProductMeteredFeeSearchResponse(value) {
return true;
}
function ProductMeteredFeeSearchResponseFromJSON(json) {
return ProductMeteredFeeSearchResponseFromJSONTyped(json, false);
}
function ProductMeteredFeeSearchResponseFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'data': json['data'] == null ? undefined : (json['data'].map(ProductMeteredFee_1.ProductMeteredFeeFromJSON)),
'offset': json['offset'] == null ? undefined : json['offset'],
'hasMore': json['hasMore'] == null ? undefined : json['hasMore'],
'limit': json['limit'] == null ? undefined : json['limit'],
};
}
function ProductMeteredFeeSearchResponseToJSON(json) {
return ProductMeteredFeeSearchResponseToJSONTyped(json, false);
}
function ProductMeteredFeeSearchResponseToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {};
}