Hi y'all,
Do we have autogenerated Mojo bindings code to convert a base::Value to a Mojo struct?
E.g. given the Mojo struct
struct Foo {
string bar;
int32 baz;
};
Do we have autogenerated code that does the following?
auto foo = Foo::New();
foo->bar = value->FindStringPath("bar");
foo->baz = value->FindIntPath("baz");
We have several applications where we parse JSONs into base::Value and then populate a Mojo struct, resulting in lots of boiler plate. I'm curious if some of this boilerplate could be replaced by autogenerated code. If such autogenerated code does not yet exist, what would it take to add it?
Cheers,
Tibor