in aws-greengrass-core-sdk/stream-manager/data/index.js [861:888]
asMap() {
const d = {};
if (this.requestId !== null) {
d["requestId"] = Object.prototype.hasOwnProperty.call(Object.getPrototypeOf(this.requestId), "asMap") ? this.requestId.asMap() : this.requestId;
}
if (this.status !== null) {
d["status"] = Object.prototype.hasOwnProperty.call(Object.getPrototypeOf(this.status), "asMap") ? this.status.asMap() : this.status;
}
if (this.errorMessage !== null) {
d["errorMessage"] = Object.prototype.hasOwnProperty.call(Object.getPrototypeOf(this.errorMessage), "asMap") ? this.errorMessage.asMap() : this.errorMessage;
}
if (this.protocolVersion !== null) {
d["protocolVersion"] = Object.prototype.hasOwnProperty.call(Object.getPrototypeOf(this.protocolVersion), "asMap") ? this.protocolVersion.asMap() : this.protocolVersion;
}
if (this.supportedProtocolVersions !== null) {
d["supportedProtocolVersions"] = this.supportedProtocolVersions.reduce((acc, v) => {
acc.push(Object.prototype.hasOwnProperty.call(Object.getPrototypeOf(v), "asMap") ? v.asMap() : v);
return acc;
}, []);
}
if (this.serverVersion !== null) {
d["serverVersion"] = Object.prototype.hasOwnProperty.call(Object.getPrototypeOf(this.serverVersion), "asMap") ? this.serverVersion.asMap() : this.serverVersion;
}
if (this.clientIdentifier !== null) {
d["clientIdentifier"] = Object.prototype.hasOwnProperty.call(Object.getPrototypeOf(this.clientIdentifier), "asMap") ? this.clientIdentifier.asMap() : this.clientIdentifier;
}
return d;
}