❔ Assign JSON API Results To DTO
hey if I am returning json data from an API how do I assign the json data to my DTO? Meaning if I have a DTO that looks like this but I only want to assign a value to
fname
and lname
how would I set that up?
5 Replies
Either use a new DTO that has only what you need, or just
And wouldn't a new DTO still run into the same issue since the parent is always
public Data data
?What 'same issue'?
sorry - no ZZZZZZZZZ is exactly correct. It works as expected
Was this issue resolved? If so, run
/close
- otherwise I will mark this as stale and this post will be archived until there is new activity.