@apideck/node
Version:
Apideck Node.js SDK
65 lines (60 loc) • 1.42 kB
text/typescript
/* tslint:disable */
/* eslint-disable */
/**
* Apideck
* The Apideck OpenAPI Spec: SDK Optimized
*
* The version of the OpenAPI document: 10.13.0
* Contact: support@apideck.com
*
* 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 } from '../runtime'
/**
*
* @export
* @interface TimeOffRequestNotes
*/
export interface TimeOffRequestNotes {
/**
*
* @type {string}
* @memberof TimeOffRequestNotes
*/
employee?: string | null
/**
*
* @type {string}
* @memberof TimeOffRequestNotes
*/
manager?: string | null
}
export function TimeOffRequestNotesFromJSON(json: any): TimeOffRequestNotes {
return TimeOffRequestNotesFromJSONTyped(json, false)
}
export function TimeOffRequestNotesFromJSONTyped(
json: any,
ignoreDiscriminator: boolean
): TimeOffRequestNotes {
if (json === undefined || json === null) {
return json
}
return {
employee: !exists(json, 'employee') ? undefined : json['employee'],
manager: !exists(json, 'manager') ? undefined : json['manager']
}
}
export function TimeOffRequestNotesToJSON(value?: TimeOffRequestNotes | null): any {
if (value === undefined) {
return undefined
}
if (value === null) {
return null
}
return {
employee: value.employee,
manager: value.manager
}
}