UNPKG

tuix-timesheets-api

Version:

This package facilitates the client request to tuix timesheets api

63 lines 2.03 kB
"use strict"; /* 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. */ Object.defineProperty(exports, "__esModule", { value: true }); exports.SubscriptionToJSON = exports.SubscriptionFromJSONTyped = exports.SubscriptionFromJSON = exports.instanceOfSubscription = void 0; /** * Check if a given object implements the Subscription interface. */ function instanceOfSubscription(value) { 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; } exports.instanceOfSubscription = instanceOfSubscription; function SubscriptionFromJSON(json) { return SubscriptionFromJSONTyped(json, false); } exports.SubscriptionFromJSON = SubscriptionFromJSON; function SubscriptionFromJSONTyped(json, ignoreDiscriminator) { 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'], }; } exports.SubscriptionFromJSONTyped = SubscriptionFromJSONTyped; function SubscriptionToJSON(value) { 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, }; } exports.SubscriptionToJSON = SubscriptionToJSON; //# sourceMappingURL=Subscription.js.map