UNPKG

tuix-timesheets-api

Version:

This package facilitates the client request to tuix timesheets api

57 lines 1.92 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.PermissionDTOToJSON = exports.PermissionDTOFromJSONTyped = exports.PermissionDTOFromJSON = exports.instanceOfPermissionDTO = void 0; const runtime_1 = require("../runtime"); /** * Check if a given object implements the PermissionDTO interface. */ function instanceOfPermissionDTO(value) { let isInstance = true; return isInstance; } exports.instanceOfPermissionDTO = instanceOfPermissionDTO; function PermissionDTOFromJSON(json) { return PermissionDTOFromJSONTyped(json, false); } exports.PermissionDTOFromJSON = PermissionDTOFromJSON; function PermissionDTOFromJSONTyped(json, ignoreDiscriminator) { if ((json === undefined) || (json === null)) { return json; } return { 'category': !(0, runtime_1.exists)(json, 'category') ? undefined : json['category'], 'description': !(0, runtime_1.exists)(json, 'description') ? undefined : json['description'], 'id': !(0, runtime_1.exists)(json, 'id') ? undefined : json['id'], 'name': !(0, runtime_1.exists)(json, 'name') ? undefined : json['name'], }; } exports.PermissionDTOFromJSONTyped = PermissionDTOFromJSONTyped; function PermissionDTOToJSON(value) { if (value === undefined) { return undefined; } if (value === null) { return null; } return { 'category': value.category, 'description': value.description, 'id': value.id, 'name': value.name, }; } exports.PermissionDTOToJSON = PermissionDTOToJSON; //# sourceMappingURL=PermissionDTO.js.map