implement for Gson