Slide 13
Slide 13 text
Models
! It will be of type struct and mostly it will contain Request, Response, and
ViewModel structs.
! Request – Parameters that need to be sent to the API request.
! Response – Gets the response from the API and stores the appropriate
data.
! ViewModel – The data required to be displayed on the UI is stored here. For
example, your API returns objects with 10 parameters, but you only need to
show 4 of them.