
/**
 * This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
 *
 * Do not edit this file as changes may cause incorrect behavior and will be lost
 * once the code is regenerated.
 *
 * @generated by codegen project: GeneratePropsCpp.js
 */

#include <react/renderer/components/RNATBridgeSpec/Props.h>
#include <react/renderer/core/PropsParserContext.h>
#include <react/renderer/core/propsConversions.h>

namespace facebook::react {

ATBannerViewProps::ATBannerViewProps(
    const PropsParserContext &context,
    const ATBannerViewProps &sourceProps,
    const RawProps &rawProps): ViewProps(context, sourceProps, rawProps),

    placementID(convertRawProp(context, rawProps, "placementID", sourceProps.placementID, {})),
    isAdaptiveHeight(convertRawProp(context, rawProps, "isAdaptiveHeight", sourceProps.isAdaptiveHeight, {false})),
    adWidth(convertRawProp(context, rawProps, "adWidth", sourceProps.adWidth, {0})),
    adHeight(convertRawProp(context, rawProps, "adHeight", sourceProps.adHeight, {0})) {}
    
#ifdef RN_SERIALIZABLE_STATE
ComponentName ATBannerViewProps::getDiffPropsImplementationTarget() const {
  return "ATBannerView";
}

folly::dynamic ATBannerViewProps::getDiffProps(
    const Props* prevProps) const {
  static const auto defaultProps = ATBannerViewProps();
  const ATBannerViewProps* oldProps = prevProps == nullptr
      ? &defaultProps
      : static_cast<const ATBannerViewProps*>(prevProps);
  if (this == oldProps) {
    return folly::dynamic::object();
  }
  folly::dynamic result = HostPlatformViewProps::getDiffProps(prevProps);
  
  if (placementID != oldProps->placementID) {
    result["placementID"] = placementID;
  }
    
  if (isAdaptiveHeight != oldProps->isAdaptiveHeight) {
    result["isAdaptiveHeight"] = isAdaptiveHeight;
  }
    
  if (adWidth != oldProps->adWidth) {
    result["adWidth"] = adWidth;
  }
    
  if (adHeight != oldProps->adHeight) {
    result["adHeight"] = adHeight;
  }
  return result;
}
#endif
ATNativeAdViewProps::ATNativeAdViewProps(
    const PropsParserContext &context,
    const ATNativeAdViewProps &sourceProps,
    const RawProps &rawProps): ViewProps(context, sourceProps, rawProps),

    placementID(convertRawProp(context, rawProps, "placementID", sourceProps.placementID, {})),
    adId(convertRawProp(context, rawProps, "adId", sourceProps.adId, {})),
    isAdaptiveHeight(convertRawProp(context, rawProps, "isAdaptiveHeight", sourceProps.isAdaptiveHeight, {false})),
    adWidth(convertRawProp(context, rawProps, "adWidth", sourceProps.adWidth, {0})),
    adHeight(convertRawProp(context, rawProps, "adHeight", sourceProps.adHeight, {0})) {}
    
#ifdef RN_SERIALIZABLE_STATE
ComponentName ATNativeAdViewProps::getDiffPropsImplementationTarget() const {
  return "ATNativeAdView";
}

folly::dynamic ATNativeAdViewProps::getDiffProps(
    const Props* prevProps) const {
  static const auto defaultProps = ATNativeAdViewProps();
  const ATNativeAdViewProps* oldProps = prevProps == nullptr
      ? &defaultProps
      : static_cast<const ATNativeAdViewProps*>(prevProps);
  if (this == oldProps) {
    return folly::dynamic::object();
  }
  folly::dynamic result = HostPlatformViewProps::getDiffProps(prevProps);
  
  if (placementID != oldProps->placementID) {
    result["placementID"] = placementID;
  }
    
  if (adId != oldProps->adId) {
    result["adId"] = adId;
  }
    
  if (isAdaptiveHeight != oldProps->isAdaptiveHeight) {
    result["isAdaptiveHeight"] = isAdaptiveHeight;
  }
    
  if (adWidth != oldProps->adWidth) {
    result["adWidth"] = adWidth;
  }
    
  if (adHeight != oldProps->adHeight) {
    result["adHeight"] = adHeight;
  }
  return result;
}
#endif

} // namespace facebook::react
