tuix-timesheets-api
Version:
This package facilitates the client request to tuix timesheets api
76 lines (66 loc) • 1.59 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 JiraAccountDto
*/
export interface JiraAccountDto {
/**
*
* @type {string}
* @memberof JiraAccountDto
*/
id: string;
/**
*
* @type {string}
* @memberof JiraAccountDto
*/
site: string;
}
/**
* Check if a given object implements the JiraAccountDto interface.
*/
export function instanceOfJiraAccountDto(value: object): boolean {
let isInstance = true;
isInstance = isInstance && "id" in value;
isInstance = isInstance && "site" in value;
return isInstance;
}
export function JiraAccountDtoFromJSON(json: any): JiraAccountDto {
return JiraAccountDtoFromJSONTyped(json, false);
}
export function JiraAccountDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): JiraAccountDto {
if ((json === undefined) || (json === null)) {
return json;
}
return {
'id': json['id'],
'site': json['site'],
};
}
export function JiraAccountDtoToJSON(value?: JiraAccountDto | null): any {
if (value === undefined) {
return undefined;
}
if (value === null) {
return null;
}
return {
'id': value.id,
'site': value.site,
};
}