sinch-rtc
Version:
RTC JavaScript/Web SDK
48 lines • 1.58 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.W3CPushProfileFromJSON = W3CPushProfileFromJSON;
exports.W3CPushProfileFromJSONTyped = W3CPushProfileFromJSONTyped;
exports.W3CPushProfileToJSON = W3CPushProfileToJSON;
const _1 = require("./");
function W3CPushProfileFromJSON(json) {
return W3CPushProfileFromJSONTyped(json, false);
}
function W3CPushProfileFromJSONTyped(json, ignoreDiscriminator) {
if ((json === undefined) || (json === null)) {
return json;
}
return {
'endpoint': json['endpoint'],
'keys': (0, _1.W3CPushProfileKeysFromJSON)(json['keys']),
'expirationTime': (new Date(json['expirationTime'])),
'applicationServerKey': json['applicationServerKey'],
};
}
function W3CPushProfileToJSON(value) {
if (value === undefined) {
return undefined;
}
if (value === null) {
return null;
}
return {
'endpoint': value.endpoint,
'keys': (0, _1.W3CPushProfileKeysToJSON)(value.keys),
'expirationTime': (value.expirationTime.toISOString()),
'applicationServerKey': value.applicationServerKey,
};
}
//# sourceMappingURL=W3CPushProfile.js.map