tuix-timesheets-api
Version:
This package facilitates the client request to tuix timesheets api
55 lines • 1.8 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 && "id" in value;
isInstance = isInstance && "githubAccount" 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 {
'id': json['id'],
'githubAccount': (0, GithubAccountDto_1.GithubAccountDtoFromJSON)(json['githubAccount']),
};
}
exports.GithubUserDtoFromJSONTyped = GithubUserDtoFromJSONTyped;
function GithubUserDtoToJSON(value) {
if (value === undefined) {
return undefined;
}
if (value === null) {
return null;
}
return {
'id': value.id,
'githubAccount': (0, GithubAccountDto_1.GithubAccountDtoToJSON)(value.githubAccount),
};
}
exports.GithubUserDtoToJSON = GithubUserDtoToJSON;
//# sourceMappingURL=GithubUserDto.js.map