Package com.morpheusdata.views
Class JsonResponse<T>
java.lang.Object
com.morpheusdata.views.JsonResponse<T>
- Type Parameters:
T
- Type of the data object, can be Map
A response object that is passed back to morpheus-ui to render json and response. Optionally strongly typed.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic JsonResponse<?>
Helper method to create a successful JsonResponse of an object
-
Field Details
-
data
-
status
-
-
Constructor Details
-
JsonResponse
public JsonResponse()
-
-
Method Details
-
of
Helper method to create a successful JsonResponse of an object- Parameters:
data
- The object to base the model off of- Returns:
- a ViewModel
-