internal static HapticEffectMode ToMode(JSONObject jsonObj) { var mode = new HapticEffectMode(); mode.Mode = EnumParser.ToMode(jsonObj["mode"]); mode.DotMode = DotMode.ToDotMode(jsonObj["dotMode"].AsObject); mode.PathMode = PathMode.ToPathMode(jsonObj["pathMode"].AsObject); return(mode); }
internal static HapticEffectMode ToMode(JsonObject jsonObj) { var mode = new HapticEffectMode(); mode.Mode = EnumParser.ToMode(jsonObj.GetNamedString("mode")); mode.DotMode = DotMode.ToDotMode(jsonObj.GetNamedObject("dotMode", new JsonObject()).GetObject()); mode.PathMode = PathMode.ToPathMode(jsonObj.GetNamedObject("pathMode", new JsonObject()).GetObject()); return(mode); }