UNPKG

streaming-availability

Version:

Streaming Availability API allows getting streaming availability information of movies and series; and querying the list of available shows on streaming services such as Netflix, Disney+, Apple TV, Max and Hulu across 60 countries!

48 lines (47 loc) 1.53 kB
"use strict"; /* tslint:disable */ /* eslint-disable */ /** * Streaming Availability API * Streaming Availability API allows getting streaming availability information of movies and series; and querying the list of available shows on streaming services such as Netflix, Disney+, Apple TV, Max and Hulu across 60 countries! * * The version of the OpenAPI document: 4.1.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.ModelErrorToJSON = exports.ModelErrorFromJSONTyped = exports.ModelErrorFromJSON = exports.instanceOfModelError = void 0; /** * Check if a given object implements the ModelError interface. */ function instanceOfModelError(value) { if (!('message' in value)) return false; return true; } exports.instanceOfModelError = instanceOfModelError; function ModelErrorFromJSON(json) { return ModelErrorFromJSONTyped(json, false); } exports.ModelErrorFromJSON = ModelErrorFromJSON; function ModelErrorFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'message': json['message'], }; } exports.ModelErrorFromJSONTyped = ModelErrorFromJSONTyped; function ModelErrorToJSON(value) { if (value == null) { return value; } return { 'message': value['message'], }; } exports.ModelErrorToJSON = ModelErrorToJSON;