Skip to main content

getObject()

getObject(obj, result): void

Recursively converts a Flatbuffers object into a plain JavaScript object. This function traverses the prototype chain of the Flatbuffers object and extracts all properties and their values, handling both primitive values and nested objects/arrays.

Parameters

ParameterTypeDescription
objanyThe Flatbuffers object to convert
resultanyThe target plain JavaScript object where the converted properties will be stored

Returns

void