In my app a user should receive a list of exercises based on his input.
I am stuck trying to attach a List of User Exercises (custom data type User’s Exercise) to my User.
The issue is: I receive the data as a list of Exercises (custom data type Exercise).
How can I convert this list of the type Exercise into a list of the type User’s Exercise? The type User’s Exercise is has a field of the type Exercise + a counter (see also screen shots below).
I attached some screenshots that show that the data types involved.
Custom Type User’s Exercise:
Custom Type Exercise:
Custom Type User:
Thanks for you help!