| 397 | } |
| 398 | |
| 399 | void AnalogTape::SetJson(const std::string value) { |
| 400 | try { |
| 401 | Json::Value root = openshot::stringToJson(value); |
| 402 | SetJsonValue(root); |
| 403 | } catch (const std::exception &) { |
| 404 | throw InvalidJSON("JSON is invalid (missing keys or invalid data types)"); |
| 405 | } |
| 406 | } |
| 407 | |
| 408 | void AnalogTape::SetJsonValue(const Json::Value root) { |
| 409 | EffectBase::SetJsonValue(root); |
nothing calls this directly
no test coverage detected