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