@shi-corp/sdk-data-gateway
Version:
SDK client used to interface with the SHI Data Gateway service.
21 lines (20 loc) • 967 B
JavaScript
export function createHealthReportFromDiscriminatorValue(parseNode) {
return deserializeIntoHealthReport;
}
export function deserializeIntoHealthReport(healthReport = {}) {
return {
"authClient": n => { healthReport.authClient = n.getBooleanValue(); },
"authServer": n => { healthReport.authServer = n.getBooleanValue(); },
"bulkStorage": n => { healthReport.bulkStorage = n.getBooleanValue(); },
"database": n => { healthReport.database = n.getBooleanValue(); },
};
}
export function serializeHealthReport(writer, healthReport = {}) {
if (healthReport) {
writer.writeBooleanValue("authClient", healthReport.authClient);
writer.writeBooleanValue("authServer", healthReport.authServer);
writer.writeBooleanValue("bulkStorage", healthReport.bulkStorage);
writer.writeBooleanValue("database", healthReport.database);
writer.writeAdditionalData(healthReport.additionalData);
}
}