UNPKG

tuix-timesheets-api

Version:

This package facilitates the client request to tuix timesheets api

85 lines (75 loc) 1.92 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 SubscriptionSentDto */ export interface SubscriptionSentDto { /** * * @type {string} * @memberof SubscriptionSentDto */ email: string; /** * * @type {string} * @memberof SubscriptionSentDto */ language: string; /** * * @type {boolean} * @memberof SubscriptionSentDto */ isSent: boolean; } /** * Check if a given object implements the SubscriptionSentDto interface. */ export function instanceOfSubscriptionSentDto(value: object): boolean { let isInstance = true; isInstance = isInstance && "email" in value; isInstance = isInstance && "language" in value; isInstance = isInstance && "isSent" in value; return isInstance; } export function SubscriptionSentDtoFromJSON(json: any): SubscriptionSentDto { return SubscriptionSentDtoFromJSONTyped(json, false); } export function SubscriptionSentDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): SubscriptionSentDto { if ((json === undefined) || (json === null)) { return json; } return { 'email': json['email'], 'language': json['language'], 'isSent': json['isSent'], }; } export function SubscriptionSentDtoToJSON(value?: SubscriptionSentDto | null): any { if (value === undefined) { return undefined; } if (value === null) { return null; } return { 'email': value.email, 'language': value.language, 'isSent': value.isSent, }; }