in aws-greengrass-core-sdk/stream-manager/data/index.js [832:859]
static fromMap(d) {
const ret = new ConnectResponse();
if ("requestId" in d) {
ret.requestId = Object.prototype.hasOwnProperty.call(String, "fromMap") ? String.fromMap(d["requestId"]) : d["requestId"];
}
if ("status" in d) {
ret.status = Object.prototype.hasOwnProperty.call(ResponseStatusCode, "fromMap") ? ResponseStatusCode.fromMap(d["status"]) : d["status"];
}
if ("errorMessage" in d) {
ret.errorMessage = Object.prototype.hasOwnProperty.call(String, "fromMap") ? String.fromMap(d["errorMessage"]) : d["errorMessage"];
}
if ("protocolVersion" in d) {
ret.protocolVersion = Object.prototype.hasOwnProperty.call(String, "fromMap") ? String.fromMap(d["protocolVersion"]) : d["protocolVersion"];
}
if ("supportedProtocolVersions" in d) {
ret.supportedProtocolVersions = d["supportedProtocolVersions"].reduce((acc, v) => {
acc.push(Object.prototype.hasOwnProperty.call(String, "fromMap") ? String.fromMap(v) : v);
return acc;
}, []);
}
if ("serverVersion" in d) {
ret.serverVersion = Object.prototype.hasOwnProperty.call(String, "fromMap") ? String.fromMap(d["serverVersion"]) : d["serverVersion"];
}
if ("clientIdentifier" in d) {
ret.clientIdentifier = Object.prototype.hasOwnProperty.call(String, "fromMap") ? String.fromMap(d["clientIdentifier"]) : d["clientIdentifier"];
}
return ret;
}