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 59 countries!

57 lines (56 loc) 1.81 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 59 countries! * * The version of the OpenAPI document: 3.3.1 * * * 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.PriceToJSON = exports.PriceFromJSONTyped = exports.PriceFromJSON = exports.instanceOfPrice = void 0; /** * Check if a given object implements the Price interface. */ function instanceOfPrice(value) { var isInstance = true; isInstance = isInstance && "amount" in value; isInstance = isInstance && "currency" in value; isInstance = isInstance && "formatted" in value; return isInstance; } exports.instanceOfPrice = instanceOfPrice; function PriceFromJSON(json) { return PriceFromJSONTyped(json, false); } exports.PriceFromJSON = PriceFromJSON; function PriceFromJSONTyped(json, ignoreDiscriminator) { if ((json === undefined) || (json === null)) { return json; } return { 'amount': json['amount'], 'currency': json['currency'], 'formatted': json['formatted'], }; } exports.PriceFromJSONTyped = PriceFromJSONTyped; function PriceToJSON(value) { if (value === undefined) { return undefined; } if (value === null) { return null; } return { 'amount': value.amount, 'currency': value.currency, 'formatted': value.formatted, }; } exports.PriceToJSON = PriceToJSON;