Skip to content

DTO And Mappers #821

Answered by illright
chertik77 asked this question in Q&A
May 9, 2025 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

I suggest that you create a mapper anyway, even if it's just a function that returns the argument. This function will convert BoardDto into Board, even if these types are the same.

This will give you flexibility in the future to not depend on the shape of the backend data and also resolve your request to not use the Dto type in the codebase

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@chertik77
Comment options

Answer selected by chertik77
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants