wallee
Version:
TypeScript/JavaScript client for wallee
37 lines (36 loc) • 1.4 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.instanceOfHumanUserListResponse = instanceOfHumanUserListResponse;
exports.HumanUserListResponseFromJSON = HumanUserListResponseFromJSON;
exports.HumanUserListResponseFromJSONTyped = HumanUserListResponseFromJSONTyped;
exports.HumanUserListResponseToJSON = HumanUserListResponseToJSON;
exports.HumanUserListResponseToJSONTyped = HumanUserListResponseToJSONTyped;
const HumanUser_1 = require("./HumanUser");
/**
* Check if a given object implements the HumanUserListResponse interface.
*/
function instanceOfHumanUserListResponse(value) {
return true;
}
function HumanUserListResponseFromJSON(json) {
return HumanUserListResponseFromJSONTyped(json, false);
}
function HumanUserListResponseFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'data': json['data'] == null ? undefined : (json['data'].map(HumanUser_1.HumanUserFromJSON)),
'hasMore': json['hasMore'] == null ? undefined : json['hasMore'],
'limit': json['limit'] == null ? undefined : json['limit'],
};
}
function HumanUserListResponseToJSON(json) {
return HumanUserListResponseToJSONTyped(json, false);
}
function HumanUserListResponseToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {};
}