wallee
Version:
TypeScript/JavaScript client for wallee
38 lines (37 loc) • 1.4 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.instanceOfRoleSearchResponse = instanceOfRoleSearchResponse;
exports.RoleSearchResponseFromJSON = RoleSearchResponseFromJSON;
exports.RoleSearchResponseFromJSONTyped = RoleSearchResponseFromJSONTyped;
exports.RoleSearchResponseToJSON = RoleSearchResponseToJSON;
exports.RoleSearchResponseToJSONTyped = RoleSearchResponseToJSONTyped;
const Role_1 = require("./Role");
/**
* Check if a given object implements the RoleSearchResponse interface.
*/
function instanceOfRoleSearchResponse(value) {
return true;
}
function RoleSearchResponseFromJSON(json) {
return RoleSearchResponseFromJSONTyped(json, false);
}
function RoleSearchResponseFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'data': json['data'] == null ? undefined : (json['data'].map(Role_1.RoleFromJSON)),
'offset': json['offset'] == null ? undefined : json['offset'],
'hasMore': json['hasMore'] == null ? undefined : json['hasMore'],
'limit': json['limit'] == null ? undefined : json['limit'],
};
}
function RoleSearchResponseToJSON(json) {
return RoleSearchResponseToJSONTyped(json, false);
}
function RoleSearchResponseToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {};
}