Code example for Gson

0
        // noop 
        return null; 
    } 
 
    public String toJson() {
        return new Gson().toJson(this);
    } 
} 
Contextual code suggestions in your IDE  Get Codota for Java