1
2
3
4
5
6
7
8
9
10
11
12
13
| package com.newvideo.util;
|
| import com.google.gson.Gson;
| import com.google.gson.GsonBuilder;
|
| public class GsonUtil {
|
|
| public static Gson create(Class clzz,Object typeAdapter){
| return new GsonBuilder().registerTypeAdapter(clzz, typeAdapter).create();
| }
|
| }
|
|