UNPKG

@shi-corp/sdk-data-gateway

Version:

SDK client used to interface with the SHI Data Gateway service.

21 lines (20 loc) 995 B
export function createRecordDataFromDiscriminatorValue(parseNode) { return deserializeIntoRecordData; } export function deserializeIntoRecordData(recordData = {}) { return { "authorizedPrincipalList": n => { recordData.authorizedPrincipalList = n.getCollectionOfPrimitiveValues(); }, "displayName": n => { recordData.displayName = n.getStringValue(); }, "parentId": n => { recordData.parentId = n.getGuidValue(); }, "tenantId": n => { recordData.tenantId = n.getGuidValue(); }, }; } export function serializeRecordData(writer, recordData = {}) { if (recordData) { writer.writeCollectionOfPrimitiveValues("authorizedPrincipalList", recordData.authorizedPrincipalList); writer.writeStringValue("displayName", recordData.displayName); writer.writeGuidValue("parentId", recordData.parentId); writer.writeGuidValue("tenantId", recordData.tenantId); writer.writeAdditionalData(recordData.additionalData); } }