@Override
        public Duration read(final JsonReader reader) {
            try {
                if (reader.peek() == JsonToken.NULL) {
                    reader.nextNull();
                    return null;
                }
                return Duration.parse(reader.nextString());
            } catch (IOException e) {
                throw new ShenyuException(e);
            }
        }
Get JsonElement class type.

@param element the element
@return Class the class
shenyu-common/src/main/java/org/apache/shenyu/common/utils/GsonUtils.java