ViewModel

ViewModel is an abstract type for a struct that represents the 'state' of a view within a torque application. A view is a representation of the data that is rendered to a client, typically in the form of HTML, JSON, or CSV. The model is the shape of that data used to build the representation. So together a ViewModel is the data used to render HTML, JSON or any other format in response to an HTTP request.