UNPKG

@indexea/sdk

Version:

Indexea JavaScript SDK (indexea.com)

53 lines (52 loc) 1.79 kB
"use strict"; /* tslint:disable */ /* eslint-disable */ /** * Indexea OpenAPI * OpenAPI of Indexea * * The version of the OpenAPI document: 1.0.0 * Contact: indexea.com@gmail.com * * 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.SearchsDailyStatToJSON = exports.SearchsDailyStatFromJSONTyped = exports.SearchsDailyStatFromJSON = exports.instanceOfSearchsDailyStat = void 0; var runtime_1 = require("../runtime"); /** * Check if a given object implements the SearchsDailyStat interface. */ function instanceOfSearchsDailyStat(value) { var isInstance = true; return isInstance; } exports.instanceOfSearchsDailyStat = instanceOfSearchsDailyStat; function SearchsDailyStatFromJSON(json) { return SearchsDailyStatFromJSONTyped(json, false); } exports.SearchsDailyStatFromJSON = SearchsDailyStatFromJSON; function SearchsDailyStatFromJSONTyped(json, ignoreDiscriminator) { if ((json === undefined) || (json === null)) { return json; } return { 'date': !(0, runtime_1.exists)(json, 'date') ? undefined : (new Date(json['date'])), 'count': !(0, runtime_1.exists)(json, 'count') ? undefined : json['count'], }; } exports.SearchsDailyStatFromJSONTyped = SearchsDailyStatFromJSONTyped; function SearchsDailyStatToJSON(value) { if (value === undefined) { return undefined; } if (value === null) { return null; } return { 'date': value.date === undefined ? undefined : (value.date.toISOString().substr(0, 10)), 'count': value.count, }; } exports.SearchsDailyStatToJSON = SearchsDailyStatToJSON;