edgedb-dart icon indicating copy to clipboard operation
edgedb-dart copied to clipboard

adding conditionnal .toMap() to fields with objectType

Open ramification opened this issue 8 months ago • 0 comments

use case

I'm using the codegen with shapes like { ** }

when using the generated .toMap() method, it converts the props of the first degree, but not more, which lead to errors in my code.

This PR solves the problem by adding a conditionnal .toMap() method on props wich needs it to be fully converted to Map.

ramification avatar May 17 '25 18:05 ramification