39 const char *valueAsString =
"";
40 if (json_object_get_type(js) == json_type_string)
41 valueAsString = json_object_get_string(js);
43 if (strcmp(valueAsString,
"center") == 0)
44 return VuoVerticalAlignment_Center;
45 else if (strcmp(valueAsString,
"bottom") == 0)
46 return VuoVerticalAlignment_Bottom;
48 return VuoVerticalAlignment_Top;