com.google.gwt.angular.client.Util Maven / Gradle / Ivy
package com.google.gwt.angular.client;
import elemental.json.JsonValue;
public class Util {
/**
* Only safe to do with JavaScriptObjects.
*/
public static native T reinterpret_cast(Object o) /*-{
return o;
}-*/;
public static String toJson(Object o) {
JsonValue value = reinterpret_cast(o);
return value.toJson();
}
public static T make(Object factory) {
return ((Factory) factory).create();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy