UNPKG

tuix-timesheets-api

Version:

This package facilitates the client request to tuix timesheets api

94 lines (84 loc) 2.15 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'; /** * * @export * @interface CreateGithubUserDto */ export interface CreateGithubUserDto { /** * * @type {string} * @memberof CreateGithubUserDto */ firstName: string; /** * * @type {string} * @memberof CreateGithubUserDto */ lastName: string; /** * * @type {string} * @memberof CreateGithubUserDto */ email: string; /** * * @type {string} * @memberof CreateGithubUserDto */ token: string; } /** * Check if a given object implements the CreateGithubUserDto interface. */ export function instanceOfCreateGithubUserDto(value: object): boolean { let isInstance = true; isInstance = isInstance && "firstName" in value; isInstance = isInstance && "lastName" in value; isInstance = isInstance && "email" in value; isInstance = isInstance && "token" in value; return isInstance; } export function CreateGithubUserDtoFromJSON(json: any): CreateGithubUserDto { return CreateGithubUserDtoFromJSONTyped(json, false); } export function CreateGithubUserDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateGithubUserDto { if ((json === undefined) || (json === null)) { return json; } return { 'firstName': json['firstName'], 'lastName': json['lastName'], 'email': json['email'], 'token': json['token'], }; } export function CreateGithubUserDtoToJSON(value?: CreateGithubUserDto | null): any { if (value === undefined) { return undefined; } if (value === null) { return null; } return { 'firstName': value.firstName, 'lastName': value.lastName, 'email': value.email, 'token': value.token, }; }