if (input.getMedia() != null) {
driveObject.addProperty("media", input.getMedia().toString());
}
if (input.getAffinities() != null) {
driveObject.add("affinities", new JsonParser().parse(new Gson().toJson(input.getAffinities())));
}
if (input.getMeta() != null) {
driveObject.add("meta", new JsonParser().parse(new Gson().toJson(input.getMeta())));
}
if (input.getTags() != null) {
driveObject.add("tags", new JsonParser().parse(new Gson().toJson(input.getTags())));
}
driveObject.addProperty("allow_multimount", input.isAllowMultimount());
return driveObject;
}