Back to project page octodroid.
The source code is released under:
MIT License
If you think the Android project octodroid listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.rejasupotaro.octodroid.models; /*from w w w . j a v a2s . co m*/ import com.rejasupotaro.octodroid.GsonProvider; public class Resource { public String toJson() { return GsonProvider.get().toJson(this); } public static <T> T fromJson(String json, Class<T> clazz) { return GsonProvider.get().fromJson(json, clazz); } }