Closed ViktorSky closed 1 year ago
In the case of wanting to obtain all the values โโof a certain field in a jsonclass list, how would it be done?
In external code it would be something similar to this:
@jsonclass class User: name: str id: str @jsonclass class UserList: names: list[str] = ... # obtained from User.name ids: list[str] = ... # obtained from User.id users: list[User] = types.listof('User').required
Hi @ViktorSky use types.getter I guess.
types.getter
In the case of wanting to obtain all the values โโof a certain field in a jsonclass list, how would it be done?
In external code it would be something similar to this: