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!

62 lines (53 loc) 1.47 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 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. */ import { mapValues } from '../runtime'; /** * * @export * @interface ModelError */ export interface ModelError { /** * * @type {string} * @memberof ModelError */ message: string; } /** * Check if a given object implements the ModelError interface. */ export function instanceOfModelError(value: object): boolean { if (!('message' in value)) return false; return true; } export function ModelErrorFromJSON(json: any): ModelError { return ModelErrorFromJSONTyped(json, false); } export function ModelErrorFromJSONTyped(json: any, ignoreDiscriminator: boolean): ModelError { if (json == null) { return json; } return { 'message': json['message'], }; } export function ModelErrorToJSON(value?: ModelError | null): any { if (value == null) { return value; } return { 'message': value['message'], }; }