wallee
Version:
TypeScript/JavaScript client for wallee
37 lines (36 loc) • 1.44 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.instanceOfStaticValueListResponse = instanceOfStaticValueListResponse;
exports.StaticValueListResponseFromJSON = StaticValueListResponseFromJSON;
exports.StaticValueListResponseFromJSONTyped = StaticValueListResponseFromJSONTyped;
exports.StaticValueListResponseToJSON = StaticValueListResponseToJSON;
exports.StaticValueListResponseToJSONTyped = StaticValueListResponseToJSONTyped;
const StaticValue_1 = require("./StaticValue");
/**
* Check if a given object implements the StaticValueListResponse interface.
*/
function instanceOfStaticValueListResponse(value) {
return true;
}
function StaticValueListResponseFromJSON(json) {
return StaticValueListResponseFromJSONTyped(json, false);
}
function StaticValueListResponseFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'data': json['data'] == null ? undefined : (json['data'].map(StaticValue_1.StaticValueFromJSON)),
'hasMore': json['hasMore'] == null ? undefined : json['hasMore'],
'limit': json['limit'] == null ? undefined : json['limit'],
};
}
function StaticValueListResponseToJSON(json) {
return StaticValueListResponseToJSONTyped(json, false);
}
function StaticValueListResponseToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {};
}