sinch-rtc
Version:
RTC JavaScript/Web SDK
48 lines • 1.57 kB
JavaScript
;
/* tslint:disable */
/* eslint-disable */
/**
* Ocra (REST API for Sinch RTC clients)
* REST API for Sinch RTC clients.
*
* The version of the OpenAPI document: 0.11.0
* Contact: rtc@sinch.com
*
* 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.PushNotificationFromJSON = PushNotificationFromJSON;
exports.PushNotificationFromJSONTyped = PushNotificationFromJSONTyped;
exports.PushNotificationToJSON = PushNotificationToJSON;
const _1 = require("./");
function PushNotificationFromJSON(json) {
return PushNotificationFromJSONTyped(json, false);
}
function PushNotificationFromJSONTyped(json, ignoreDiscriminator) {
if ((json === undefined) || (json === null)) {
return json;
}
return {
'collapseId': json['collapseId'],
'templateId': json['templateId'],
'templateParameters': json['templateParameters'],
'to': (json['to'].map(_1.PushNotificationDestinationFromJSON)),
};
}
function PushNotificationToJSON(value) {
if (value === undefined) {
return undefined;
}
if (value === null) {
return null;
}
return {
'collapseId': value.collapseId,
'templateId': value.templateId,
'templateParameters': value.templateParameters,
'to': (value.to.map(_1.PushNotificationDestinationToJSON)),
};
}
//# sourceMappingURL=PushNotification.js.map