/**
 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
 * SPDX-License-Identifier: Apache-2.0.
 */

#include <aws/appflow/model/MarketoSourceProperties.h>
#include <aws/core/utils/json/JsonSerializer.h>

#include <utility>

using namespace Aws::Utils::Json;
using namespace Aws::Utils;

namespace Aws {
namespace Appflow {
namespace Model {

MarketoSourceProperties::MarketoSourceProperties(JsonView jsonValue) { *this = jsonValue; }

MarketoSourceProperties& MarketoSourceProperties::operator=(JsonView jsonValue) {
  if (jsonValue.ValueExists("object")) {
    m_object = jsonValue.GetString("object");
    m_objectHasBeenSet = true;
  }
  return *this;
}

JsonValue MarketoSourceProperties::Jsonize() const {
  JsonValue payload;

  if (m_objectHasBeenSet) {
    payload.WithString("object", m_object);
  }

  return payload;
}

}  // namespace Model
}  // namespace Appflow
}  // namespace Aws
