sinch-rtc
Version:
RTC JavaScript/Web SDK
44 lines • 1.45 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.PushConfigFromJSON = PushConfigFromJSON;
exports.PushConfigFromJSONTyped = PushConfigFromJSONTyped;
exports.PushConfigToJSON = PushConfigToJSON;
const runtime_1 = require("../runtime");
function PushConfigFromJSON(json) {
return PushConfigFromJSONTyped(json, false);
}
function PushConfigFromJSONTyped(json, ignoreDiscriminator) {
if ((json === undefined) || (json === null)) {
return json;
}
return {
'fcmSenderId': !(0, runtime_1.exists)(json, 'fcmSenderId') ? undefined : json['fcmSenderId'],
'w3cApplicationServerKey': !(0, runtime_1.exists)(json, 'w3cApplicationServerKey') ? undefined : json['w3cApplicationServerKey'],
};
}
function PushConfigToJSON(value) {
if (value === undefined) {
return undefined;
}
if (value === null) {
return null;
}
return {
'fcmSenderId': value.fcmSenderId,
'w3cApplicationServerKey': value.w3cApplicationServerKey,
};
}
//# sourceMappingURL=PushConfig.js.map