UNPKG

tuix-timesheets-api

Version:

This package facilitates the client request to tuix timesheets api

128 lines (117 loc) 2.99 kB
/* 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 {boolean} * @memberof GithubUserDTO */ active: boolean; /** * * @type {string} * @memberof GithubUserDTO */ email: string; /** * * @type {string} * @memberof GithubUserDTO */ firstName: string; /** * * @type {GithubAccountDTO} * @memberof GithubUserDTO */ githubAccount: GithubAccountDTO; /** * * @type {string} * @memberof GithubUserDTO */ id: string; /** * * @type {string} * @memberof GithubUserDTO */ lastName: string; /** * * @type {string} * @memberof GithubUserDTO */ userId: string; } /** * Check if a given object implements the GithubUserDTO interface. */ export function instanceOfGithubUserDTO(value: object): boolean { let isInstance = true; isInstance = isInstance && "active" in value; isInstance = isInstance && "email" in value; isInstance = isInstance && "firstName" in value; isInstance = isInstance && "githubAccount" in value; isInstance = isInstance && "id" in value; isInstance = isInstance && "lastName" in value; isInstance = isInstance && "userId" 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 { 'active': json['active'], 'email': json['email'], 'firstName': json['firstName'], 'githubAccount': GithubAccountDTOFromJSON(json['githubAccount']), 'id': json['id'], 'lastName': json['lastName'], 'userId': json['userId'], }; } export function GithubUserDTOToJSON(value?: GithubUserDTO | null): any { if (value === undefined) { return undefined; } if (value === null) { return null; } return { 'active': value.active, 'email': value.email, 'firstName': value.firstName, 'githubAccount': GithubAccountDTOToJSON(value.githubAccount), 'id': value.id, 'lastName': value.lastName, 'userId': value.userId, }; }