public static SpeckleObject fromNumber(double num) { dynamic obj = new SpeckleObject(); obj.type = "Number"; obj.hash = "Number.NoHash"; obj.value = num; return(obj); }
public static SpeckleObject fromString(string str) { dynamic obj = new SpeckleObject(); obj.type = "String"; obj.hash = "String.NoHash"; obj.value = str; return(obj); }
public static SpeckleObject fromBoolean(bool b) { dynamic obj = new SpeckleObject(); obj.type = "Boolean"; obj.hash = "Boolean.NoHash"; obj.value = b ? 1 : 0; return(obj); }