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