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!

85 lines (75 loc) 2.14 kB
/* 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. */ import { exists, mapValues } from '../runtime'; /** * Price of the renting or buying. * @export * @interface Price */ export interface Price { /** * Numerical amount of the price. * @type {string} * @memberof Price */ amount: string; /** * ISO 4217 alphabetic code of the currency. * @type {string} * @memberof Price */ currency: string; /** * Formatted price, including both the amount and the currency. * @type {string} * @memberof Price */ formatted: string; } /** * Check if a given object implements the Price interface. */ export function instanceOfPrice(value: object): boolean { let isInstance = true; isInstance = isInstance && "amount" in value; isInstance = isInstance && "currency" in value; isInstance = isInstance && "formatted" in value; return isInstance; } export function PriceFromJSON(json: any): Price { return PriceFromJSONTyped(json, false); } export function PriceFromJSONTyped(json: any, ignoreDiscriminator: boolean): Price { if ((json === undefined) || (json === null)) { return json; } return { 'amount': json['amount'], 'currency': json['currency'], 'formatted': json['formatted'], }; } export function PriceToJSON(value?: Price | null): any { if (value === undefined) { return undefined; } if (value === null) { return null; } return { 'amount': value.amount, 'currency': value.currency, 'formatted': value.formatted, }; }