UNPKG

tuix-timesheets-api

Version:

This package facilitates the client request to tuix timesheets api

76 lines (66 loc) 1.73 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 CreateSubscriptionDTO */ export interface CreateSubscriptionDTO { /** * * @type {string} * @memberof CreateSubscriptionDTO */ email: string; /** * * @type {string} * @memberof CreateSubscriptionDTO */ language: string; } /** * Check if a given object implements the CreateSubscriptionDTO interface. */ export function instanceOfCreateSubscriptionDTO(value: object): boolean { let isInstance = true; isInstance = isInstance && "email" in value; isInstance = isInstance && "language" in value; return isInstance; } export function CreateSubscriptionDTOFromJSON(json: any): CreateSubscriptionDTO { return CreateSubscriptionDTOFromJSONTyped(json, false); } export function CreateSubscriptionDTOFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateSubscriptionDTO { if ((json === undefined) || (json === null)) { return json; } return { 'email': json['email'], 'language': json['language'], }; } export function CreateSubscriptionDTOToJSON(value?: CreateSubscriptionDTO | null): any { if (value === undefined) { return undefined; } if (value === null) { return null; } return { 'email': value.email, 'language': value.language, }; }