v2/googlecloud-to-googlecloud/src/main/java/com/google/cloud/teleport/v2/utils/FirestoreConverters.java [750:769]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    private JsonObject entitySchema(Entity entity) {
      JsonObject jsonObject = new JsonObject();
      entity.getPropertiesMap().entrySet().stream()
          .forEach(
              entrySet -> {
                String key = entrySet.getKey();
                Value value = entrySet.getValue();
                switch (value.getValueTypeCase()) {
                  case ENTITY_VALUE:
                    jsonObject.add(key, entitySchema(value.getEntityValue()));
                    break;
                  case ARRAY_VALUE:
                    jsonObject.add(key, arraySchema(value.getArrayValue()));
                    break;
                  default:
                    jsonObject.addProperty(key, value.getValueTypeCase().toString());
                }
              });
      return jsonObject;
    }
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



v1/src/main/java/com/google/cloud/teleport/templates/common/DatastoreConverters.java [733:752]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    private JsonObject entitySchema(Entity entity) {
      JsonObject jsonObject = new JsonObject();
      entity.getPropertiesMap().entrySet().stream()
          .forEach(
              entrySet -> {
                String key = entrySet.getKey();
                Value value = entrySet.getValue();
                switch (value.getValueTypeCase()) {
                  case ENTITY_VALUE:
                    jsonObject.add(key, entitySchema(value.getEntityValue()));
                    break;
                  case ARRAY_VALUE:
                    jsonObject.add(key, arraySchema(value.getArrayValue()));
                    break;
                  default:
                    jsonObject.addProperty(key, value.getValueTypeCase().toString());
                }
              });
      return jsonObject;
    }
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



