tuix-timesheets-api
Version:
This package facilitates the client request to tuix timesheets api
83 lines (72 loc) • 1.9 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';
import type { GithubAccountDto } from './GithubAccountDto';
import {
GithubAccountDtoFromJSON,
GithubAccountDtoFromJSONTyped,
GithubAccountDtoToJSON,
} from './GithubAccountDto';
/**
*
* @export
* @interface GithubUserDto
*/
export interface GithubUserDto {
/**
*
* @type {string}
* @memberof GithubUserDto
*/
id: string;
/**
*
* @type {GithubAccountDto}
* @memberof GithubUserDto
*/
githubAccount: GithubAccountDto;
}
/**
* Check if a given object implements the GithubUserDto interface.
*/
export function instanceOfGithubUserDto(value: object): boolean {
let isInstance = true;
isInstance = isInstance && "id" in value;
isInstance = isInstance && "githubAccount" in value;
return isInstance;
}
export function GithubUserDtoFromJSON(json: any): GithubUserDto {
return GithubUserDtoFromJSONTyped(json, false);
}
export function GithubUserDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): GithubUserDto {
if ((json === undefined) || (json === null)) {
return json;
}
return {
'id': json['id'],
'githubAccount': GithubAccountDtoFromJSON(json['githubAccount']),
};
}
export function GithubUserDtoToJSON(value?: GithubUserDto | null): any {
if (value === undefined) {
return undefined;
}
if (value === null) {
return null;
}
return {
'id': value.id,
'githubAccount': GithubAccountDtoToJSON(value.githubAccount),
};
}