public static DirectMessage createDirectMessage(String rawJSON) throws TwitterException {
        try {
            return new DirectMessageJSONImpl(new JSONObject(rawJSON));
        } catch (JSONException e) {
            throw new TwitterException(e);
        }
    }
public static DirectMessage createDirectMessage ( String rawJSON ) throws TwitterException { try { return new DirectMessageJSONImpl ( new JSONObject ( rawJSON ) ) ; } catch ( JSONException e ) { throw new TwitterException ( e ) ; } }
Constructs a DirectMessage object from rawJSON string.

@param rawJSON raw JSON form as String
@return DirectMessage
@throws TwitterException when provided string is not a valid JSON string.
@since Twitter4J 2.1.7