UNPKG

tuix-timesheets-api

Version:

This package facilitates the client request to tuix timesheets api

67 lines 2.48 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.ClientDTOToJSON = exports.ClientDTOFromJSONTyped = exports.ClientDTOFromJSON = exports.instanceOfClientDTO = void 0; const runtime_1 = require("../runtime"); /** * Check if a given object implements the ClientDTO interface. */ function instanceOfClientDTO(value) { let isInstance = true; return isInstance; } exports.instanceOfClientDTO = instanceOfClientDTO; function ClientDTOFromJSON(json) { return ClientDTOFromJSONTyped(json, false); } exports.ClientDTOFromJSON = ClientDTOFromJSON; function ClientDTOFromJSONTyped(json, ignoreDiscriminator) { if ((json === undefined) || (json === null)) { return json; } return { 'address': !(0, runtime_1.exists)(json, 'address') ? undefined : json['address'], 'city': !(0, runtime_1.exists)(json, 'city') ? undefined : json['city'], 'country': !(0, runtime_1.exists)(json, 'country') ? undefined : json['country'], 'email': !(0, runtime_1.exists)(json, 'email') ? undefined : json['email'], 'fullName': !(0, runtime_1.exists)(json, 'fullName') ? undefined : json['fullName'], 'id': !(0, runtime_1.exists)(json, 'id') ? undefined : json['id'], 'phoneNumber': !(0, runtime_1.exists)(json, 'phoneNumber') ? undefined : json['phoneNumber'], 'postalCode': !(0, runtime_1.exists)(json, 'postalCode') ? undefined : json['postalCode'], 'vatNumber': !(0, runtime_1.exists)(json, 'vatNumber') ? undefined : json['vatNumber'], }; } exports.ClientDTOFromJSONTyped = ClientDTOFromJSONTyped; function ClientDTOToJSON(value) { if (value === undefined) { return undefined; } if (value === null) { return null; } return { 'address': value.address, 'city': value.city, 'country': value.country, 'email': value.email, 'fullName': value.fullName, 'id': value.id, 'phoneNumber': value.phoneNumber, 'postalCode': value.postalCode, 'vatNumber': value.vatNumber, }; } exports.ClientDTOToJSON = ClientDTOToJSON; //# sourceMappingURL=ClientDTO.js.map