
com.morpheusdata.views.JsonResponse Maven / Gradle / Ivy
package com.morpheusdata.views;
/**
* A response object that is passed back to morpheus-ui to render json and response. Optionally strongly typed.
* @param Type of the data object, can be Map
*/
public class JsonResponse {
public T data;
public Integer status = 200;
/**
* Helper method to create a successful JsonResponse of an object
* @param data The object to base the model off of
* @return a ViewModel
*/
public static JsonResponse> of(Object data) {
JsonResponse
© 2015 - 2025 Weber Informatics LLC | Privacy Policy