tuix-timesheets-api
Version:
This package facilitates the client request to tuix timesheets api
54 lines • 1.82 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.GithubCommitCountDTOToJSON = exports.GithubCommitCountDTOFromJSONTyped = exports.GithubCommitCountDTOFromJSON = exports.instanceOfGithubCommitCountDTO = void 0;
/**
* Check if a given object implements the GithubCommitCountDTO interface.
*/
function instanceOfGithubCommitCountDTO(value) {
let isInstance = true;
isInstance = isInstance && "groupPeriod" in value;
isInstance = isInstance && "commitCount" in value;
return isInstance;
}
exports.instanceOfGithubCommitCountDTO = instanceOfGithubCommitCountDTO;
function GithubCommitCountDTOFromJSON(json) {
return GithubCommitCountDTOFromJSONTyped(json, false);
}
exports.GithubCommitCountDTOFromJSON = GithubCommitCountDTOFromJSON;
function GithubCommitCountDTOFromJSONTyped(json, ignoreDiscriminator) {
if ((json === undefined) || (json === null)) {
return json;
}
return {
'groupPeriod': json['group_period'],
'commitCount': json['commit_count'],
};
}
exports.GithubCommitCountDTOFromJSONTyped = GithubCommitCountDTOFromJSONTyped;
function GithubCommitCountDTOToJSON(value) {
if (value === undefined) {
return undefined;
}
if (value === null) {
return null;
}
return {
'group_period': value.groupPeriod,
'commit_count': value.commitCount,
};
}
exports.GithubCommitCountDTOToJSON = GithubCommitCountDTOToJSON;
//# sourceMappingURL=GithubCommitCountDTO.js.map