UNPKG

tuix-timesheets-api

Version:

This package facilitates the client request to tuix timesheets api

57 lines 1.72 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.JiraAccountDTOToJSON = exports.JiraAccountDTOFromJSONTyped = exports.JiraAccountDTOFromJSON = exports.instanceOfJiraAccountDTO = void 0; /** * Check if a given object implements the JiraAccountDTO interface. */ function instanceOfJiraAccountDTO(value) { let isInstance = true; isInstance = isInstance && "id" in value; isInstance = isInstance && "name" in value; isInstance = isInstance && "site" in value; return isInstance; } exports.instanceOfJiraAccountDTO = instanceOfJiraAccountDTO; function JiraAccountDTOFromJSON(json) { return JiraAccountDTOFromJSONTyped(json, false); } exports.JiraAccountDTOFromJSON = JiraAccountDTOFromJSON; function JiraAccountDTOFromJSONTyped(json, ignoreDiscriminator) { if ((json === undefined) || (json === null)) { return json; } return { 'id': json['id'], 'name': json['name'], 'site': json['site'], }; } exports.JiraAccountDTOFromJSONTyped = JiraAccountDTOFromJSONTyped; function JiraAccountDTOToJSON(value) { if (value === undefined) { return undefined; } if (value === null) { return null; } return { 'id': value.id, 'name': value.name, 'site': value.site, }; } exports.JiraAccountDTOToJSON = JiraAccountDTOToJSON; //# sourceMappingURL=JiraAccountDTO.js.map