| 244 | } |
| 245 | |
| 246 | void entitlementToJSONV3(QJsonObject &parent, MinecraftEntitlement p) { |
| 247 | if(p.validity == Katabasis::Validity::None) { |
| 248 | return; |
| 249 | } |
| 250 | QJsonObject out; |
| 251 | out["ownsMinecraft"] = QJsonValue(p.ownsMinecraft); |
| 252 | out["canPlayMinecraft"] = QJsonValue(p.canPlayMinecraft); |
| 253 | parent["entitlement"] = out; |
| 254 | } |
| 255 | |
| 256 | bool entitlementFromJSONV3(const QJsonObject &parent, MinecraftEntitlement & out) { |
| 257 | auto entitlementObject = parent.value("entitlement").toObject(); |