| 208 | } |
| 209 | |
| 210 | void entitlementToJSONV3(QJsonObject &parent, MinecraftEntitlement p) { |
| 211 | if(p.validity == Katabasis::Validity::None) { |
| 212 | return; |
| 213 | } |
| 214 | QJsonObject out; |
| 215 | out["ownsMinecraft"] = QJsonValue(p.ownsMinecraft); |
| 216 | out["canPlayMinecraft"] = QJsonValue(p.canPlayMinecraft); |
| 217 | parent["entitlement"] = out; |
| 218 | } |
| 219 | |
| 220 | bool entitlementFromJSONV3(const QJsonObject &parent, MinecraftEntitlement & out) { |
| 221 | auto entitlementObject = parent.value("entitlement").toObject(); |