UNPKG

tuix-timesheets-api

Version:

This package facilitates the client request to tuix timesheets api

113 lines 4.58 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.ProjectDTOToJSON = exports.ProjectDTOFromJSONTyped = exports.ProjectDTOFromJSON = exports.instanceOfProjectDTO = void 0; const runtime_1 = require("../runtime"); /** * Check if a given object implements the ProjectDTO interface. */ function instanceOfProjectDTO(value) { let isInstance = true; isInstance = isInstance && "city" in value; isInstance = isInstance && "companyContactPerson" in value; isInstance = isInstance && "contactEmail" in value; isInstance = isInstance && "contactName" in value; isInstance = isInstance && "contactPhoneNumber" in value; isInstance = isInstance && "description" in value; isInstance = isInstance && "endDate" in value; isInstance = isInstance && "gitPrefix" in value; isInstance = isInstance && "githubOrganization" in value; isInstance = isInstance && "hourlyRate" in value; isInstance = isInstance && "houseNumber" in value; isInstance = isInstance && "jiraOrganization" in value; isInstance = isInstance && "jiraPrefix" in value; isInstance = isInstance && "paymentMonthDay" in value; isInstance = isInstance && "postalCode" in value; isInstance = isInstance && "projectName" in value; isInstance = isInstance && "startDate" in value; isInstance = isInstance && "street" in value; return isInstance; } exports.instanceOfProjectDTO = instanceOfProjectDTO; function ProjectDTOFromJSON(json) { return ProjectDTOFromJSONTyped(json, false); } exports.ProjectDTOFromJSON = ProjectDTOFromJSON; function ProjectDTOFromJSONTyped(json, ignoreDiscriminator) { if ((json === undefined) || (json === null)) { return json; } return { 'city': json['city'], 'clientId': !(0, runtime_1.exists)(json, 'clientId') ? undefined : json['clientId'], 'closed': !(0, runtime_1.exists)(json, 'closed') ? undefined : json['closed'], 'companyContactPerson': json['companyContactPerson'], 'contactEmail': json['contactEmail'], 'contactName': json['contactName'], 'contactPhoneNumber': json['contactPhoneNumber'], 'createdAt': !(0, runtime_1.exists)(json, 'createdAt') ? undefined : json['createdAt'], 'description': json['description'], 'endDate': json['endDate'], 'gitPrefix': json['gitPrefix'], 'githubOrganization': json['githubOrganization'], 'hourlyRate': json['hourlyRate'], 'houseNumber': json['houseNumber'], 'id': !(0, runtime_1.exists)(json, 'id') ? undefined : json['id'], 'jiraOrganization': json['jiraOrganization'], 'jiraPrefix': json['jiraPrefix'], 'paymentMonthDay': json['paymentMonthDay'], 'postalCode': json['postalCode'], 'projectName': json['projectName'], 'startDate': json['startDate'], 'street': json['street'], 'updatedAt': !(0, runtime_1.exists)(json, 'updatedAt') ? undefined : json['updatedAt'], }; } exports.ProjectDTOFromJSONTyped = ProjectDTOFromJSONTyped; function ProjectDTOToJSON(value) { if (value === undefined) { return undefined; } if (value === null) { return null; } return { 'city': value.city, 'clientId': value.clientId, 'closed': value.closed, 'companyContactPerson': value.companyContactPerson, 'contactEmail': value.contactEmail, 'contactName': value.contactName, 'contactPhoneNumber': value.contactPhoneNumber, 'createdAt': value.createdAt, 'description': value.description, 'endDate': value.endDate, 'gitPrefix': value.gitPrefix, 'githubOrganization': value.githubOrganization, 'hourlyRate': value.hourlyRate, 'houseNumber': value.houseNumber, 'id': value.id, 'jiraOrganization': value.jiraOrganization, 'jiraPrefix': value.jiraPrefix, 'paymentMonthDay': value.paymentMonthDay, 'postalCode': value.postalCode, 'projectName': value.projectName, 'startDate': value.startDate, 'street': value.street, 'updatedAt': value.updatedAt, }; } exports.ProjectDTOToJSON = ProjectDTOToJSON; //# sourceMappingURL=ProjectDTO.js.map