UNPKG

tuix-timesheets-api

Version:

This package facilitates the client request to tuix timesheets api

103 lines (93 loc) 2.31 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 Subscription */ export interface Subscription { /** * * @type {string} * @memberof Subscription */ id: string; /** * * @type {Date} * @memberof Subscription */ createdAt: Date; /** * * @type {Date} * @memberof Subscription */ updatedAt: Date; /** * * @type {string} * @memberof Subscription */ email: string; /** * * @type {string} * @memberof Subscription */ language: string; } /** * Check if a given object implements the Subscription interface. */ export function instanceOfSubscription(value: object): boolean { let isInstance = true; isInstance = isInstance && "id" in value; isInstance = isInstance && "createdAt" in value; isInstance = isInstance && "updatedAt" in value; isInstance = isInstance && "email" in value; isInstance = isInstance && "language" in value; return isInstance; } export function SubscriptionFromJSON(json: any): Subscription { return SubscriptionFromJSONTyped(json, false); } export function SubscriptionFromJSONTyped(json: any, ignoreDiscriminator: boolean): Subscription { if ((json === undefined) || (json === null)) { return json; } return { 'id': json['id'], 'createdAt': (new Date(json['createdAt'])), 'updatedAt': (new Date(json['updatedAt'])), 'email': json['email'], 'language': json['language'], }; } export function SubscriptionToJSON(value?: Subscription | null): any { if (value === undefined) { return undefined; } if (value === null) { return null; } return { 'id': value.id, 'createdAt': (value.createdAt.toISOString()), 'updatedAt': (value.updatedAt.toISOString()), 'email': value.email, 'language': value.language, }; }