wallee
Version:
TypeScript/JavaScript client for wallee
37 lines (36 loc) • 1.42 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.instanceOfPermissionListResponse = instanceOfPermissionListResponse;
exports.PermissionListResponseFromJSON = PermissionListResponseFromJSON;
exports.PermissionListResponseFromJSONTyped = PermissionListResponseFromJSONTyped;
exports.PermissionListResponseToJSON = PermissionListResponseToJSON;
exports.PermissionListResponseToJSONTyped = PermissionListResponseToJSONTyped;
const Permission_1 = require("./Permission");
/**
* Check if a given object implements the PermissionListResponse interface.
*/
function instanceOfPermissionListResponse(value) {
return true;
}
function PermissionListResponseFromJSON(json) {
return PermissionListResponseFromJSONTyped(json, false);
}
function PermissionListResponseFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'data': json['data'] == null ? undefined : (json['data'].map(Permission_1.PermissionFromJSON)),
'hasMore': json['hasMore'] == null ? undefined : json['hasMore'],
'limit': json['limit'] == null ? undefined : json['limit'],
};
}
function PermissionListResponseToJSON(json) {
return PermissionListResponseToJSONTyped(json, false);
}
function PermissionListResponseToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {};
}