/** * Create a new Empty ServiceResponse based on the given * ServiceResponse. Any missing values will be set to their defaults. * * @param m * The ServiceResponse to parse. * @return A Empty ServiceResponse based on the given Message. */ public static Response fromServiceResponse(ServiceResponse resp) { // get it from the JSON object return Empty.Response.fromJsonObject(resp.toJsonObject()); }
/** * Create a new Empty ServiceResponse based on the given * ServiceResponse. Any missing values will be set to their defaults. * * @param resp the resp * @return A Empty ServiceResponse based on the given Message. */ public static Response fromServiceResponse(ServiceResponse resp) { // get it from the JSON object return Empty.Response.fromJsonObject(resp.toJsonObject()); }