UNPKG

tuix-timesheets-api

Version:

This package facilitates the client request to tuix timesheets api

90 lines (80 loc) 2 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 PermissionDTO */ export interface PermissionDTO { /** * * @type {string} * @memberof PermissionDTO */ category?: string; /** * * @type {string} * @memberof PermissionDTO */ description?: string; /** * * @type {string} * @memberof PermissionDTO */ id?: string; /** * * @type {string} * @memberof PermissionDTO */ name?: string; } /** * Check if a given object implements the PermissionDTO interface. */ export function instanceOfPermissionDTO(value: object): boolean { let isInstance = true; return isInstance; } export function PermissionDTOFromJSON(json: any): PermissionDTO { return PermissionDTOFromJSONTyped(json, false); } export function PermissionDTOFromJSONTyped(json: any, ignoreDiscriminator: boolean): PermissionDTO { if ((json === undefined) || (json === null)) { return json; } return { 'category': !exists(json, 'category') ? undefined : json['category'], 'description': !exists(json, 'description') ? undefined : json['description'], 'id': !exists(json, 'id') ? undefined : json['id'], 'name': !exists(json, 'name') ? undefined : json['name'], }; } export function PermissionDTOToJSON(value?: PermissionDTO | null): any { if (value === undefined) { return undefined; } if (value === null) { return null; } return { 'category': value.category, 'description': value.description, 'id': value.id, 'name': value.name, }; }