UNPKG

tuix-timesheets-api

Version:

This package facilitates the client request to tuix timesheets api

60 lines 1.99 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.CreateGithubUserDtoToJSON = exports.CreateGithubUserDtoFromJSONTyped = exports.CreateGithubUserDtoFromJSON = exports.instanceOfCreateGithubUserDto = void 0; /** * Check if a given object implements the CreateGithubUserDto interface. */ function instanceOfCreateGithubUserDto(value) { let isInstance = true; isInstance = isInstance && "firstName" in value; isInstance = isInstance && "lastName" in value; isInstance = isInstance && "email" in value; isInstance = isInstance && "token" in value; return isInstance; } exports.instanceOfCreateGithubUserDto = instanceOfCreateGithubUserDto; function CreateGithubUserDtoFromJSON(json) { return CreateGithubUserDtoFromJSONTyped(json, false); } exports.CreateGithubUserDtoFromJSON = CreateGithubUserDtoFromJSON; function CreateGithubUserDtoFromJSONTyped(json, ignoreDiscriminator) { if ((json === undefined) || (json === null)) { return json; } return { 'firstName': json['firstName'], 'lastName': json['lastName'], 'email': json['email'], 'token': json['token'], }; } exports.CreateGithubUserDtoFromJSONTyped = CreateGithubUserDtoFromJSONTyped; function CreateGithubUserDtoToJSON(value) { if (value === undefined) { return undefined; } if (value === null) { return null; } return { 'firstName': value.firstName, 'lastName': value.lastName, 'email': value.email, 'token': value.token, }; } exports.CreateGithubUserDtoToJSON = CreateGithubUserDtoToJSON; //# sourceMappingURL=CreateGithubUserDto.js.map