| 397 | } |
| 398 | |
| 399 | String FormattedJson::toFormattedInt() const { |
| 400 | if (!isType(Json::Type::Int)) |
| 401 | throw JsonException::format("Cannot call toFormattedInt on Json type {}, must be Int", typeName()); |
| 402 | if (m_formatting.isValid()) |
| 403 | return *m_formatting; |
| 404 | return toJson().repr(); |
| 405 | } |
| 406 | |
| 407 | String FormattedJson::repr() const { |
| 408 | if (m_formatting.isValid()) |
no test coverage detected