UNPKG

tuix-timesheets-api

Version:

This package facilitates the client request to tuix timesheets api

60 lines 2.37 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.GlobalTimesheetDTOToJSON = exports.GlobalTimesheetDTOFromJSONTyped = exports.GlobalTimesheetDTOFromJSON = exports.instanceOfGlobalTimesheetDTO = void 0; const runtime_1 = require("../runtime"); const GlobalTimesheetEntryDTO_1 = require("./GlobalTimesheetEntryDTO"); /** * Check if a given object implements the GlobalTimesheetDTO interface. */ function instanceOfGlobalTimesheetDTO(value) { let isInstance = true; return isInstance; } exports.instanceOfGlobalTimesheetDTO = instanceOfGlobalTimesheetDTO; function GlobalTimesheetDTOFromJSON(json) { return GlobalTimesheetDTOFromJSONTyped(json, false); } exports.GlobalTimesheetDTOFromJSON = GlobalTimesheetDTOFromJSON; function GlobalTimesheetDTOFromJSONTyped(json, ignoreDiscriminator) { if ((json === undefined) || (json === null)) { return json; } return { 'entries': !(0, runtime_1.exists)(json, 'entries') ? undefined : (json['entries'].map(GlobalTimesheetEntryDTO_1.GlobalTimesheetEntryDTOFromJSON)), 'id': !(0, runtime_1.exists)(json, 'id') ? undefined : json['id'], 'month': !(0, runtime_1.exists)(json, 'month') ? undefined : json['month'], 'projectID': !(0, runtime_1.exists)(json, 'projectID') ? undefined : json['projectID'], 'status': !(0, runtime_1.exists)(json, 'status') ? undefined : json['status'], }; } exports.GlobalTimesheetDTOFromJSONTyped = GlobalTimesheetDTOFromJSONTyped; function GlobalTimesheetDTOToJSON(value) { if (value === undefined) { return undefined; } if (value === null) { return null; } return { 'entries': value.entries === undefined ? undefined : (value.entries.map(GlobalTimesheetEntryDTO_1.GlobalTimesheetEntryDTOToJSON)), 'id': value.id, 'month': value.month, 'projectID': value.projectID, 'status': value.status, }; } exports.GlobalTimesheetDTOToJSON = GlobalTimesheetDTOToJSON; //# sourceMappingURL=GlobalTimesheetDTO.js.map