List of usage examples for com.google.gson JsonNull INSTANCE
JsonNull INSTANCE
To view the source code for com.google.gson JsonNull INSTANCE.
Click Source Link
From source file:org.qcert.runtime.UnaryOperators.java
License:Apache License
private static JsonElement mk_right_none() { return right(JsonNull.INSTANCE); }
From source file:org.restcomm.connect.http.converter.AbstractConverter.java
License:Open Source License
protected void writeUssdFallbackUrl(final URI ussdFallbackUrl, final JsonObject object) { if (ussdFallbackUrl != null) { object.addProperty("ussd_fallback_url", ussdFallbackUrl.toString()); } else {/*w w w. ja v a 2 s . c om*/ object.add("ussd_fallback_url", JsonNull.INSTANCE); } }
From source file:org.restcomm.connect.http.converter.AbstractConverter.java
License:Open Source License
protected void writeUssdFallbackMethod(final String ussdFallbackMethod, final JsonObject object) { if (ussdFallbackMethod != null) { object.addProperty("ussd_fallback_method", ussdFallbackMethod); } else {// w w w. j a va 2 s .co m object.add("ussd_fallback_method", JsonNull.INSTANCE); } }
From source file:org.restcomm.connect.http.converter.AbstractConverter.java
License:Open Source License
protected void writeUssdUrl(final URI ussdUrl, final JsonObject object) { if (ussdUrl != null) { object.addProperty("ussd_url", ussdUrl.toString()); } else {/*from w w w. j a va 2s. c o m*/ object.add("ussd_url", JsonNull.INSTANCE); } }
From source file:org.restcomm.connect.http.converter.AbstractConverter.java
License:Open Source License
protected void writeUssdMethod(final String ussdMethod, final JsonObject object) { if (ussdMethod != null) { object.addProperty("ussd_method", ussdMethod); } else {// www . j a v a2 s . c o m object.add("ussd_method", JsonNull.INSTANCE); } }
From source file:org.restcomm.connect.http.converter.AbstractConverter.java
License:Open Source License
protected void writeReferUrl(final URI referUrl, final JsonObject object) { if (referUrl != null) { object.addProperty("refer_url", referUrl.toString()); } else {//from www. ja va 2s.c o m object.add("refer_url", JsonNull.INSTANCE); } }
From source file:org.restcomm.connect.http.converter.AbstractConverter.java
License:Open Source License
protected void writeReferMethod(final String referMethod, final JsonObject object) { if (referMethod != null) { object.addProperty("refer_method", referMethod); } else {// w w w . j ava2 s. c o m object.add("refer_method", JsonNull.INSTANCE); } }
From source file:org.restcomm.connect.http.converter.GeolocationConverter.java
License:Open Source License
protected void writeSource(final String source, final JsonObject object) { if (source != null) { object.addProperty("source", source); } else {/* w ww. j ava2 s . c o m*/ object.add("source", JsonNull.INSTANCE); } }
From source file:org.restcomm.connect.http.converter.GeolocationConverter.java
License:Open Source License
protected void writeDeviceIdentifier(final String deviceIdentifier, final JsonObject object) { if (deviceIdentifier != null) { object.addProperty("device_identifier", deviceIdentifier); } else {//from ww w . ja v a2 s . c o m object.add("device_identifier", JsonNull.INSTANCE); } }
From source file:org.restcomm.connect.http.converter.GeolocationConverter.java
License:Open Source License
protected void writeGeolocationType(final Geolocation.GeolocationType geolocationType, final JsonObject object) { if (geolocationType != null) { object.addProperty("geolocation_type", geolocationType.toString()); } else {//w w w . ja v a2 s.c o m object.add("geolocation_type", JsonNull.INSTANCE); } }