public static CallLogEntry fromJson(String jsonString) {
        
        try {
            JSONObject json = new JSONObject(jsonString);
            CallLogEntry entry = new CallLogEntry(json.optString("number"), json.optInt("duration"));
            entry.direction = json.optInt("direction", INCOMING_TYPE);
            entry.time = dateFormat.parse(json.optString("time"));
            return entry;
        } catch(ParseException e) {
            throw new IllegalArgumentException("Unable to parse CallLogEntry from string " + jsonString, e);
            
        } catch(JSONException e) {
            throw new IllegalArgumentException("Unable to parse CallLogEntry from string " + jsonString, e);
        }        
    }
Number of caller.
@param number
Duration of call.
@param duration
Time as a date object of call.
@param time
Direction of call, use INCOMING_TYPE, OUTGOING_TYPE, or MISSED_TYPE
@param direction
selendroid-server-common/src/main/java/io/selendroid/server/common/utils/CallLogEntry.java