public String toJSON() {
        try {
            JSONObject json = new JSONObject();
            json.put("number", number);
            json.put("duration", duration);
            json.put("direction", direction);
            json.put("time", dateFormat.format(time));
            return json.toString();
        } catch(JSONException e) {
            throw new IllegalStateException("CallLogEntry cannot be converted to JSONObject", 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