예제 #1
0
 @Override
 public final JsonValue asJson() {
   JsonObjectBuilder builder = JsonUtils.createObjectBuilder();
   JsonUtils.add(builder, TYPE_PROPERTY, getElementType());
   addJsonProperties(builder);
   return builder.build();
 }
예제 #2
0
 @Override
 public JsonValue asJson() {
   JsonObjectBuilder builder = JsonUtils.createObjectBuilder();
   JsonUtils.add(builder, NAME_PROPERTY, mName);
   JsonUtils.add(builder, EXPRESSION_PROPERTY, mExpression);
   JsonUtils.add(builder, VALUE_PROPERTY, mValue);
   return builder.build();
 }
예제 #3
0
 @Override
 public JsonValue asJson() {
   JsonObjectBuilder builder = JsonUtils.createObjectBuilder();
   JsonUtils.add(
       builder, ACKNOWLEDGE_AUDIO_ITEMS_PROPERTY, JsonUtils.toJson(mAcknowledgeAudioItems));
   JsonUtils.add(builder, DTMF_RECOGNITION_CONFIGURATION_PROPERTY, mDtmfRecognitionConfiguration);
   JsonUtils.add(
       builder, SPEECH_RECOGNITION_CONFIGURATION_PROPERTY, mSpeechRecognitionConfiguration);
   JsonUtils.addTimeProperty(builder, NO_INPUT_TIMEOUT_PROPERTY, mNoInputTimeout);
   return builder.build();
 }