public static WoopsaValue DeserializedJsonToWoopsaValue(object deserializedJson, WoopsaValueType type, DateTime? timeStamp = null) { if (type == WoopsaValueType.JsonData) return new WoopsaValue(Woopsa.WoopsaJsonData.CreateFromDeserializedData(deserializedJson)); else return ToWoopsaValue(deserializedJson, type, timeStamp); }
internal string InvokeMethodDeserializedJson(string path, Dictionary <string, object> arguments) { int argumentsCount = arguments != null ? arguments.Count : 0; return(InvokeMethod(path, argumentsCount, (argumentName, woopsaValueType) => { object argumentValue = arguments[argumentName]; if (argumentValue != null) { return WoopsaValue.DeserializedJsonToWoopsaValue( argumentValue, woopsaValueType); } else { return null; } })); }