tuix-timesheets-api
Version:
This package facilitates the client request to tuix timesheets api
51 lines • 1.58 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.GithubAccountDtoToJSON = exports.GithubAccountDtoFromJSONTyped = exports.GithubAccountDtoFromJSON = exports.instanceOfGithubAccountDto = void 0;
/**
* Check if a given object implements the GithubAccountDto interface.
*/
function instanceOfGithubAccountDto(value) {
let isInstance = true;
isInstance = isInstance && "username" in value;
return isInstance;
}
exports.instanceOfGithubAccountDto = instanceOfGithubAccountDto;
function GithubAccountDtoFromJSON(json) {
return GithubAccountDtoFromJSONTyped(json, false);
}
exports.GithubAccountDtoFromJSON = GithubAccountDtoFromJSON;
function GithubAccountDtoFromJSONTyped(json, ignoreDiscriminator) {
if ((json === undefined) || (json === null)) {
return json;
}
return {
'username': json['username'],
};
}
exports.GithubAccountDtoFromJSONTyped = GithubAccountDtoFromJSONTyped;
function GithubAccountDtoToJSON(value) {
if (value === undefined) {
return undefined;
}
if (value === null) {
return null;
}
return {
'username': value.username,
};
}
exports.GithubAccountDtoToJSON = GithubAccountDtoToJSON;
//# sourceMappingURL=GithubAccountDto.js.map