tuix-timesheets-api
Version:
This package facilitates the client request to tuix timesheets api
60 lines • 1.99 kB
JavaScript
;
/* 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 && "email" in value;
isInstance = isInstance && "firstName" in value;
isInstance = isInstance && "lastName" 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 {
'email': json['email'],
'firstName': json['firstName'],
'lastName': json['lastName'],
'token': json['token'],
};
}
exports.CreateGithubUserDTOFromJSONTyped = CreateGithubUserDTOFromJSONTyped;
function CreateGithubUserDTOToJSON(value) {
if (value === undefined) {
return undefined;
}
if (value === null) {
return null;
}
return {
'email': value.email,
'firstName': value.firstName,
'lastName': value.lastName,
'token': value.token,
};
}
exports.CreateGithubUserDTOToJSON = CreateGithubUserDTOToJSON;
//# sourceMappingURL=CreateGithubUserDTO.js.map