tuix-timesheets-api
Version:
This package facilitates the client request to tuix timesheets api
70 lines • 2.4 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.GithubUserDTOToJSON = exports.GithubUserDTOFromJSONTyped = exports.GithubUserDTOFromJSON = exports.instanceOfGithubUserDTO = void 0;
const GithubAccountDTO_1 = require("./GithubAccountDTO");
/**
* Check if a given object implements the GithubUserDTO interface.
*/
function instanceOfGithubUserDTO(value) {
let isInstance = true;
isInstance = isInstance && "active" in value;
isInstance = isInstance && "email" in value;
isInstance = isInstance && "firstName" in value;
isInstance = isInstance && "githubAccount" in value;
isInstance = isInstance && "id" in value;
isInstance = isInstance && "lastName" in value;
isInstance = isInstance && "userId" in value;
return isInstance;
}
exports.instanceOfGithubUserDTO = instanceOfGithubUserDTO;
function GithubUserDTOFromJSON(json) {
return GithubUserDTOFromJSONTyped(json, false);
}
exports.GithubUserDTOFromJSON = GithubUserDTOFromJSON;
function GithubUserDTOFromJSONTyped(json, ignoreDiscriminator) {
if ((json === undefined) || (json === null)) {
return json;
}
return {
'active': json['active'],
'email': json['email'],
'firstName': json['firstName'],
'githubAccount': (0, GithubAccountDTO_1.GithubAccountDTOFromJSON)(json['githubAccount']),
'id': json['id'],
'lastName': json['lastName'],
'userId': json['userId'],
};
}
exports.GithubUserDTOFromJSONTyped = GithubUserDTOFromJSONTyped;
function GithubUserDTOToJSON(value) {
if (value === undefined) {
return undefined;
}
if (value === null) {
return null;
}
return {
'active': value.active,
'email': value.email,
'firstName': value.firstName,
'githubAccount': (0, GithubAccountDTO_1.GithubAccountDTOToJSON)(value.githubAccount),
'id': value.id,
'lastName': value.lastName,
'userId': value.userId,
};
}
exports.GithubUserDTOToJSON = GithubUserDTOToJSON;
//# sourceMappingURL=GithubUserDTO.js.map