// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 // AWS SDK #include // GameKit #include void GameKit::UserGameplayDataBundle::ToJson(Aws::Utils::Json::JsonValue& json) const { for (size_t i = 0; i < numKeys; i++) { json.WithString(bundleItemKeys[i], bundleItemValues[i]); } } void GameKit::UserGameplayDataDeleteItemsRequest::ToJson(Aws::Utils::Json::JsonValue& json) const { Aws::Utils::Array bundleItemJsonList(numKeys); for (size_t i = 0; i < bundleItemJsonList.GetLength(); ++i) { bundleItemJsonList[i].AsString(bundleItemKeys[i]); } json.WithArray("bundle_item_keys", std::move(bundleItemJsonList)); } void GameKit::UserGameplayDataBundleItemValue::ToJson(Aws::Utils::Json::JsonValue& json) { json.WithString("bundle_item_value", bundleItemValue); }