tuix-timesheets-api
Version:
This package facilitates the client request to tuix timesheets api
76 lines (66 loc) • 1.77 kB
text/typescript
/* 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.
*/
import { exists, mapValues } from '../runtime';
/**
*
* @export
* @interface GithubCommitCountDTO
*/
export interface GithubCommitCountDTO {
/**
*
* @type {number}
* @memberof GithubCommitCountDTO
*/
commitCount: number;
/**
*
* @type {string}
* @memberof GithubCommitCountDTO
*/
groupPeriod: string;
}
/**
* Check if a given object implements the GithubCommitCountDTO interface.
*/
export function instanceOfGithubCommitCountDTO(value: object): boolean {
let isInstance = true;
isInstance = isInstance && "commitCount" in value;
isInstance = isInstance && "groupPeriod" in value;
return isInstance;
}
export function GithubCommitCountDTOFromJSON(json: any): GithubCommitCountDTO {
return GithubCommitCountDTOFromJSONTyped(json, false);
}
export function GithubCommitCountDTOFromJSONTyped(json: any, ignoreDiscriminator: boolean): GithubCommitCountDTO {
if ((json === undefined) || (json === null)) {
return json;
}
return {
'commitCount': json['commitCount'],
'groupPeriod': json['groupPeriod'],
};
}
export function GithubCommitCountDTOToJSON(value?: GithubCommitCountDTO | null): any {
if (value === undefined) {
return undefined;
}
if (value === null) {
return null;
}
return {
'commitCount': value.commitCount,
'groupPeriod': value.groupPeriod,
};
}