ark::serialization::TsGenerator
Defined in header “ark/serialization/ts_generator.hh”.
This generator allows you to take in a generator configuration and then emit all of the necessary Javascript code to automatically serialize/deserialize that schema.
Methods
-
TsGenerator(RbufGeneratorConfiguration config, SchemaRegistry registry)
Constructor. Initializes the generator for the target type, pulling information from the given registry as needed. -
std::string source()
Returns the contents of the generated source file.