tuix-timesheets-api
Version:
This package facilitates the client request to tuix timesheets api
91 lines (81 loc) • 1.95 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 UserDTOSc
*/
export interface UserDTOSc {
/**
*
* @type {string}
* @memberof UserDTOSc
*/
name: string;
/**
*
* @type {string}
* @memberof UserDTOSc
*/
createdAt?: string;
/**
*
* @type {string}
* @memberof UserDTOSc
*/
id?: string;
/**
*
* @type {string}
* @memberof UserDTOSc
*/
updatedAt?: string;
}
/**
* Check if a given object implements the UserDTOSc interface.
*/
export function instanceOfUserDTOSc(value: object): boolean {
let isInstance = true;
isInstance = isInstance && "name" in value;
return isInstance;
}
export function UserDTOScFromJSON(json: any): UserDTOSc {
return UserDTOScFromJSONTyped(json, false);
}
export function UserDTOScFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserDTOSc {
if ((json === undefined) || (json === null)) {
return json;
}
return {
'name': json['Name'],
'createdAt': !exists(json, 'createdAt') ? undefined : json['createdAt'],
'id': !exists(json, 'id') ? undefined : json['id'],
'updatedAt': !exists(json, 'updatedAt') ? undefined : json['updatedAt'],
};
}
export function UserDTOScToJSON(value?: UserDTOSc | null): any {
if (value === undefined) {
return undefined;
}
if (value === null) {
return null;
}
return {
'Name': value.name,
'createdAt': value.createdAt,
'id': value.id,
'updatedAt': value.updatedAt,
};
}