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!
56 lines (55 loc) • 2.1 kB
JavaScript
;
/* 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.UpcomingChangeSetToJSON = exports.UpcomingChangeSetFromJSONTyped = exports.UpcomingChangeSetFromJSON = exports.instanceOfUpcomingChangeSet = void 0;
var Change_1 = require("./Change");
var Show_1 = require("./Show");
/**
* Check if a given object implements the UpcomingChangeSet interface.
*/
function instanceOfUpcomingChangeSet(value) {
var isInstance = true;
isInstance = isInstance && "upcomingChanges" in value;
isInstance = isInstance && "show" in value;
return isInstance;
}
exports.instanceOfUpcomingChangeSet = instanceOfUpcomingChangeSet;
function UpcomingChangeSetFromJSON(json) {
return UpcomingChangeSetFromJSONTyped(json, false);
}
exports.UpcomingChangeSetFromJSON = UpcomingChangeSetFromJSON;
function UpcomingChangeSetFromJSONTyped(json, ignoreDiscriminator) {
if ((json === undefined) || (json === null)) {
return json;
}
return {
'upcomingChanges': (json['upcomingChanges'].map(Change_1.ChangeFromJSON)),
'show': (0, Show_1.ShowFromJSON)(json['show']),
};
}
exports.UpcomingChangeSetFromJSONTyped = UpcomingChangeSetFromJSONTyped;
function UpcomingChangeSetToJSON(value) {
if (value === undefined) {
return undefined;
}
if (value === null) {
return null;
}
return {
'upcomingChanges': (value.upcomingChanges.map(Change_1.ChangeToJSON)),
'show': (0, Show_1.ShowToJSON)(value.show),
};
}
exports.UpcomingChangeSetToJSON = UpcomingChangeSetToJSON;