UNPKG

tuix-timesheets-api

Version:

This package facilitates the client request to tuix timesheets api

54 lines 1.97 kB
"use strict"; /* tslint:disable */ /* eslint-disable */ /** * Tuix Services * Tuix Services API * * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ Object.defineProperty(exports, "__esModule", { value: true }); exports.RolePermissionsDTOToJSON = exports.RolePermissionsDTOFromJSONTyped = exports.RolePermissionsDTOFromJSON = exports.instanceOfRolePermissionsDTO = void 0; const runtime_1 = require("../runtime"); const PermissionDTO_1 = require("./PermissionDTO"); /** * Check if a given object implements the RolePermissionsDTO interface. */ function instanceOfRolePermissionsDTO(value) { let isInstance = true; return isInstance; } exports.instanceOfRolePermissionsDTO = instanceOfRolePermissionsDTO; function RolePermissionsDTOFromJSON(json) { return RolePermissionsDTOFromJSONTyped(json, false); } exports.RolePermissionsDTOFromJSON = RolePermissionsDTOFromJSON; function RolePermissionsDTOFromJSONTyped(json, ignoreDiscriminator) { if ((json === undefined) || (json === null)) { return json; } return { 'permissions': !(0, runtime_1.exists)(json, 'permissions') ? undefined : (json['permissions'].map(PermissionDTO_1.PermissionDTOFromJSON)), 'role': !(0, runtime_1.exists)(json, 'role') ? undefined : json['role'], }; } exports.RolePermissionsDTOFromJSONTyped = RolePermissionsDTOFromJSONTyped; function RolePermissionsDTOToJSON(value) { if (value === undefined) { return undefined; } if (value === null) { return null; } return { 'permissions': value.permissions === undefined ? undefined : (value.permissions.map(PermissionDTO_1.PermissionDTOToJSON)), 'role': value.role, }; } exports.RolePermissionsDTOToJSON = RolePermissionsDTOToJSON; //# sourceMappingURL=RolePermissionsDTO.js.map