/** * 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: GeneratePropsH.js */ #pragma once #include #include #include #include #include #include namespace facebook::react { struct EnrichedMarkdownMarkdownStyleParagraphStruct { Float fontSize{0.0}; std::string fontFamily{}; std::string fontWeight{}; SharedColor color{}; Float marginTop{0.0}; Float marginBottom{0.0}; Float lineHeight{0.0}; std::string textAlign{}; #ifdef RN_SERIALIZABLE_STATE bool operator==(const EnrichedMarkdownMarkdownStyleParagraphStruct&) const = default; folly::dynamic toDynamic() const { folly::dynamic result = folly::dynamic::object(); result["fontSize"] = fontSize; result["fontFamily"] = fontFamily; result["fontWeight"] = fontWeight; result["color"] = ::facebook::react::toDynamic(color); result["marginTop"] = marginTop; result["marginBottom"] = marginBottom; result["lineHeight"] = lineHeight; result["textAlign"] = textAlign; return result; } #endif }; static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownMarkdownStyleParagraphStruct &result) { auto map = (std::unordered_map)value; auto tmp_fontSize = map.find("fontSize"); if (tmp_fontSize != map.end()) { fromRawValue(context, tmp_fontSize->second, result.fontSize); } auto tmp_fontFamily = map.find("fontFamily"); if (tmp_fontFamily != map.end()) { fromRawValue(context, tmp_fontFamily->second, result.fontFamily); } auto tmp_fontWeight = map.find("fontWeight"); if (tmp_fontWeight != map.end()) { fromRawValue(context, tmp_fontWeight->second, result.fontWeight); } auto tmp_color = map.find("color"); if (tmp_color != map.end()) { fromRawValue(context, tmp_color->second, result.color); } auto tmp_marginTop = map.find("marginTop"); if (tmp_marginTop != map.end()) { fromRawValue(context, tmp_marginTop->second, result.marginTop); } auto tmp_marginBottom = map.find("marginBottom"); if (tmp_marginBottom != map.end()) { fromRawValue(context, tmp_marginBottom->second, result.marginBottom); } auto tmp_lineHeight = map.find("lineHeight"); if (tmp_lineHeight != map.end()) { fromRawValue(context, tmp_lineHeight->second, result.lineHeight); } auto tmp_textAlign = map.find("textAlign"); if (tmp_textAlign != map.end()) { fromRawValue(context, tmp_textAlign->second, result.textAlign); } } static inline std::string toString(const EnrichedMarkdownMarkdownStyleParagraphStruct &value) { return "[Object EnrichedMarkdownMarkdownStyleParagraphStruct]"; } #ifdef RN_SERIALIZABLE_STATE static inline folly::dynamic toDynamic(const EnrichedMarkdownMarkdownStyleParagraphStruct &value) { return value.toDynamic(); } #endif struct EnrichedMarkdownMarkdownStyleH1Struct { Float fontSize{0.0}; std::string fontFamily{}; std::string fontWeight{}; SharedColor color{}; Float marginTop{0.0}; Float marginBottom{0.0}; Float lineHeight{0.0}; std::string textAlign{}; #ifdef RN_SERIALIZABLE_STATE bool operator==(const EnrichedMarkdownMarkdownStyleH1Struct&) const = default; folly::dynamic toDynamic() const { folly::dynamic result = folly::dynamic::object(); result["fontSize"] = fontSize; result["fontFamily"] = fontFamily; result["fontWeight"] = fontWeight; result["color"] = ::facebook::react::toDynamic(color); result["marginTop"] = marginTop; result["marginBottom"] = marginBottom; result["lineHeight"] = lineHeight; result["textAlign"] = textAlign; return result; } #endif }; static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownMarkdownStyleH1Struct &result) { auto map = (std::unordered_map)value; auto tmp_fontSize = map.find("fontSize"); if (tmp_fontSize != map.end()) { fromRawValue(context, tmp_fontSize->second, result.fontSize); } auto tmp_fontFamily = map.find("fontFamily"); if (tmp_fontFamily != map.end()) { fromRawValue(context, tmp_fontFamily->second, result.fontFamily); } auto tmp_fontWeight = map.find("fontWeight"); if (tmp_fontWeight != map.end()) { fromRawValue(context, tmp_fontWeight->second, result.fontWeight); } auto tmp_color = map.find("color"); if (tmp_color != map.end()) { fromRawValue(context, tmp_color->second, result.color); } auto tmp_marginTop = map.find("marginTop"); if (tmp_marginTop != map.end()) { fromRawValue(context, tmp_marginTop->second, result.marginTop); } auto tmp_marginBottom = map.find("marginBottom"); if (tmp_marginBottom != map.end()) { fromRawValue(context, tmp_marginBottom->second, result.marginBottom); } auto tmp_lineHeight = map.find("lineHeight"); if (tmp_lineHeight != map.end()) { fromRawValue(context, tmp_lineHeight->second, result.lineHeight); } auto tmp_textAlign = map.find("textAlign"); if (tmp_textAlign != map.end()) { fromRawValue(context, tmp_textAlign->second, result.textAlign); } } static inline std::string toString(const EnrichedMarkdownMarkdownStyleH1Struct &value) { return "[Object EnrichedMarkdownMarkdownStyleH1Struct]"; } #ifdef RN_SERIALIZABLE_STATE static inline folly::dynamic toDynamic(const EnrichedMarkdownMarkdownStyleH1Struct &value) { return value.toDynamic(); } #endif struct EnrichedMarkdownMarkdownStyleH2Struct { Float fontSize{0.0}; std::string fontFamily{}; std::string fontWeight{}; SharedColor color{}; Float marginTop{0.0}; Float marginBottom{0.0}; Float lineHeight{0.0}; std::string textAlign{}; #ifdef RN_SERIALIZABLE_STATE bool operator==(const EnrichedMarkdownMarkdownStyleH2Struct&) const = default; folly::dynamic toDynamic() const { folly::dynamic result = folly::dynamic::object(); result["fontSize"] = fontSize; result["fontFamily"] = fontFamily; result["fontWeight"] = fontWeight; result["color"] = ::facebook::react::toDynamic(color); result["marginTop"] = marginTop; result["marginBottom"] = marginBottom; result["lineHeight"] = lineHeight; result["textAlign"] = textAlign; return result; } #endif }; static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownMarkdownStyleH2Struct &result) { auto map = (std::unordered_map)value; auto tmp_fontSize = map.find("fontSize"); if (tmp_fontSize != map.end()) { fromRawValue(context, tmp_fontSize->second, result.fontSize); } auto tmp_fontFamily = map.find("fontFamily"); if (tmp_fontFamily != map.end()) { fromRawValue(context, tmp_fontFamily->second, result.fontFamily); } auto tmp_fontWeight = map.find("fontWeight"); if (tmp_fontWeight != map.end()) { fromRawValue(context, tmp_fontWeight->second, result.fontWeight); } auto tmp_color = map.find("color"); if (tmp_color != map.end()) { fromRawValue(context, tmp_color->second, result.color); } auto tmp_marginTop = map.find("marginTop"); if (tmp_marginTop != map.end()) { fromRawValue(context, tmp_marginTop->second, result.marginTop); } auto tmp_marginBottom = map.find("marginBottom"); if (tmp_marginBottom != map.end()) { fromRawValue(context, tmp_marginBottom->second, result.marginBottom); } auto tmp_lineHeight = map.find("lineHeight"); if (tmp_lineHeight != map.end()) { fromRawValue(context, tmp_lineHeight->second, result.lineHeight); } auto tmp_textAlign = map.find("textAlign"); if (tmp_textAlign != map.end()) { fromRawValue(context, tmp_textAlign->second, result.textAlign); } } static inline std::string toString(const EnrichedMarkdownMarkdownStyleH2Struct &value) { return "[Object EnrichedMarkdownMarkdownStyleH2Struct]"; } #ifdef RN_SERIALIZABLE_STATE static inline folly::dynamic toDynamic(const EnrichedMarkdownMarkdownStyleH2Struct &value) { return value.toDynamic(); } #endif struct EnrichedMarkdownMarkdownStyleH3Struct { Float fontSize{0.0}; std::string fontFamily{}; std::string fontWeight{}; SharedColor color{}; Float marginTop{0.0}; Float marginBottom{0.0}; Float lineHeight{0.0}; std::string textAlign{}; #ifdef RN_SERIALIZABLE_STATE bool operator==(const EnrichedMarkdownMarkdownStyleH3Struct&) const = default; folly::dynamic toDynamic() const { folly::dynamic result = folly::dynamic::object(); result["fontSize"] = fontSize; result["fontFamily"] = fontFamily; result["fontWeight"] = fontWeight; result["color"] = ::facebook::react::toDynamic(color); result["marginTop"] = marginTop; result["marginBottom"] = marginBottom; result["lineHeight"] = lineHeight; result["textAlign"] = textAlign; return result; } #endif }; static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownMarkdownStyleH3Struct &result) { auto map = (std::unordered_map)value; auto tmp_fontSize = map.find("fontSize"); if (tmp_fontSize != map.end()) { fromRawValue(context, tmp_fontSize->second, result.fontSize); } auto tmp_fontFamily = map.find("fontFamily"); if (tmp_fontFamily != map.end()) { fromRawValue(context, tmp_fontFamily->second, result.fontFamily); } auto tmp_fontWeight = map.find("fontWeight"); if (tmp_fontWeight != map.end()) { fromRawValue(context, tmp_fontWeight->second, result.fontWeight); } auto tmp_color = map.find("color"); if (tmp_color != map.end()) { fromRawValue(context, tmp_color->second, result.color); } auto tmp_marginTop = map.find("marginTop"); if (tmp_marginTop != map.end()) { fromRawValue(context, tmp_marginTop->second, result.marginTop); } auto tmp_marginBottom = map.find("marginBottom"); if (tmp_marginBottom != map.end()) { fromRawValue(context, tmp_marginBottom->second, result.marginBottom); } auto tmp_lineHeight = map.find("lineHeight"); if (tmp_lineHeight != map.end()) { fromRawValue(context, tmp_lineHeight->second, result.lineHeight); } auto tmp_textAlign = map.find("textAlign"); if (tmp_textAlign != map.end()) { fromRawValue(context, tmp_textAlign->second, result.textAlign); } } static inline std::string toString(const EnrichedMarkdownMarkdownStyleH3Struct &value) { return "[Object EnrichedMarkdownMarkdownStyleH3Struct]"; } #ifdef RN_SERIALIZABLE_STATE static inline folly::dynamic toDynamic(const EnrichedMarkdownMarkdownStyleH3Struct &value) { return value.toDynamic(); } #endif struct EnrichedMarkdownMarkdownStyleH4Struct { Float fontSize{0.0}; std::string fontFamily{}; std::string fontWeight{}; SharedColor color{}; Float marginTop{0.0}; Float marginBottom{0.0}; Float lineHeight{0.0}; std::string textAlign{}; #ifdef RN_SERIALIZABLE_STATE bool operator==(const EnrichedMarkdownMarkdownStyleH4Struct&) const = default; folly::dynamic toDynamic() const { folly::dynamic result = folly::dynamic::object(); result["fontSize"] = fontSize; result["fontFamily"] = fontFamily; result["fontWeight"] = fontWeight; result["color"] = ::facebook::react::toDynamic(color); result["marginTop"] = marginTop; result["marginBottom"] = marginBottom; result["lineHeight"] = lineHeight; result["textAlign"] = textAlign; return result; } #endif }; static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownMarkdownStyleH4Struct &result) { auto map = (std::unordered_map)value; auto tmp_fontSize = map.find("fontSize"); if (tmp_fontSize != map.end()) { fromRawValue(context, tmp_fontSize->second, result.fontSize); } auto tmp_fontFamily = map.find("fontFamily"); if (tmp_fontFamily != map.end()) { fromRawValue(context, tmp_fontFamily->second, result.fontFamily); } auto tmp_fontWeight = map.find("fontWeight"); if (tmp_fontWeight != map.end()) { fromRawValue(context, tmp_fontWeight->second, result.fontWeight); } auto tmp_color = map.find("color"); if (tmp_color != map.end()) { fromRawValue(context, tmp_color->second, result.color); } auto tmp_marginTop = map.find("marginTop"); if (tmp_marginTop != map.end()) { fromRawValue(context, tmp_marginTop->second, result.marginTop); } auto tmp_marginBottom = map.find("marginBottom"); if (tmp_marginBottom != map.end()) { fromRawValue(context, tmp_marginBottom->second, result.marginBottom); } auto tmp_lineHeight = map.find("lineHeight"); if (tmp_lineHeight != map.end()) { fromRawValue(context, tmp_lineHeight->second, result.lineHeight); } auto tmp_textAlign = map.find("textAlign"); if (tmp_textAlign != map.end()) { fromRawValue(context, tmp_textAlign->second, result.textAlign); } } static inline std::string toString(const EnrichedMarkdownMarkdownStyleH4Struct &value) { return "[Object EnrichedMarkdownMarkdownStyleH4Struct]"; } #ifdef RN_SERIALIZABLE_STATE static inline folly::dynamic toDynamic(const EnrichedMarkdownMarkdownStyleH4Struct &value) { return value.toDynamic(); } #endif struct EnrichedMarkdownMarkdownStyleH5Struct { Float fontSize{0.0}; std::string fontFamily{}; std::string fontWeight{}; SharedColor color{}; Float marginTop{0.0}; Float marginBottom{0.0}; Float lineHeight{0.0}; std::string textAlign{}; #ifdef RN_SERIALIZABLE_STATE bool operator==(const EnrichedMarkdownMarkdownStyleH5Struct&) const = default; folly::dynamic toDynamic() const { folly::dynamic result = folly::dynamic::object(); result["fontSize"] = fontSize; result["fontFamily"] = fontFamily; result["fontWeight"] = fontWeight; result["color"] = ::facebook::react::toDynamic(color); result["marginTop"] = marginTop; result["marginBottom"] = marginBottom; result["lineHeight"] = lineHeight; result["textAlign"] = textAlign; return result; } #endif }; static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownMarkdownStyleH5Struct &result) { auto map = (std::unordered_map)value; auto tmp_fontSize = map.find("fontSize"); if (tmp_fontSize != map.end()) { fromRawValue(context, tmp_fontSize->second, result.fontSize); } auto tmp_fontFamily = map.find("fontFamily"); if (tmp_fontFamily != map.end()) { fromRawValue(context, tmp_fontFamily->second, result.fontFamily); } auto tmp_fontWeight = map.find("fontWeight"); if (tmp_fontWeight != map.end()) { fromRawValue(context, tmp_fontWeight->second, result.fontWeight); } auto tmp_color = map.find("color"); if (tmp_color != map.end()) { fromRawValue(context, tmp_color->second, result.color); } auto tmp_marginTop = map.find("marginTop"); if (tmp_marginTop != map.end()) { fromRawValue(context, tmp_marginTop->second, result.marginTop); } auto tmp_marginBottom = map.find("marginBottom"); if (tmp_marginBottom != map.end()) { fromRawValue(context, tmp_marginBottom->second, result.marginBottom); } auto tmp_lineHeight = map.find("lineHeight"); if (tmp_lineHeight != map.end()) { fromRawValue(context, tmp_lineHeight->second, result.lineHeight); } auto tmp_textAlign = map.find("textAlign"); if (tmp_textAlign != map.end()) { fromRawValue(context, tmp_textAlign->second, result.textAlign); } } static inline std::string toString(const EnrichedMarkdownMarkdownStyleH5Struct &value) { return "[Object EnrichedMarkdownMarkdownStyleH5Struct]"; } #ifdef RN_SERIALIZABLE_STATE static inline folly::dynamic toDynamic(const EnrichedMarkdownMarkdownStyleH5Struct &value) { return value.toDynamic(); } #endif struct EnrichedMarkdownMarkdownStyleH6Struct { Float fontSize{0.0}; std::string fontFamily{}; std::string fontWeight{}; SharedColor color{}; Float marginTop{0.0}; Float marginBottom{0.0}; Float lineHeight{0.0}; std::string textAlign{}; #ifdef RN_SERIALIZABLE_STATE bool operator==(const EnrichedMarkdownMarkdownStyleH6Struct&) const = default; folly::dynamic toDynamic() const { folly::dynamic result = folly::dynamic::object(); result["fontSize"] = fontSize; result["fontFamily"] = fontFamily; result["fontWeight"] = fontWeight; result["color"] = ::facebook::react::toDynamic(color); result["marginTop"] = marginTop; result["marginBottom"] = marginBottom; result["lineHeight"] = lineHeight; result["textAlign"] = textAlign; return result; } #endif }; static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownMarkdownStyleH6Struct &result) { auto map = (std::unordered_map)value; auto tmp_fontSize = map.find("fontSize"); if (tmp_fontSize != map.end()) { fromRawValue(context, tmp_fontSize->second, result.fontSize); } auto tmp_fontFamily = map.find("fontFamily"); if (tmp_fontFamily != map.end()) { fromRawValue(context, tmp_fontFamily->second, result.fontFamily); } auto tmp_fontWeight = map.find("fontWeight"); if (tmp_fontWeight != map.end()) { fromRawValue(context, tmp_fontWeight->second, result.fontWeight); } auto tmp_color = map.find("color"); if (tmp_color != map.end()) { fromRawValue(context, tmp_color->second, result.color); } auto tmp_marginTop = map.find("marginTop"); if (tmp_marginTop != map.end()) { fromRawValue(context, tmp_marginTop->second, result.marginTop); } auto tmp_marginBottom = map.find("marginBottom"); if (tmp_marginBottom != map.end()) { fromRawValue(context, tmp_marginBottom->second, result.marginBottom); } auto tmp_lineHeight = map.find("lineHeight"); if (tmp_lineHeight != map.end()) { fromRawValue(context, tmp_lineHeight->second, result.lineHeight); } auto tmp_textAlign = map.find("textAlign"); if (tmp_textAlign != map.end()) { fromRawValue(context, tmp_textAlign->second, result.textAlign); } } static inline std::string toString(const EnrichedMarkdownMarkdownStyleH6Struct &value) { return "[Object EnrichedMarkdownMarkdownStyleH6Struct]"; } #ifdef RN_SERIALIZABLE_STATE static inline folly::dynamic toDynamic(const EnrichedMarkdownMarkdownStyleH6Struct &value) { return value.toDynamic(); } #endif struct EnrichedMarkdownMarkdownStyleBlockquoteAdmonitionsNoteStruct { SharedColor color{}; SharedColor backgroundColor{}; #ifdef RN_SERIALIZABLE_STATE bool operator==(const EnrichedMarkdownMarkdownStyleBlockquoteAdmonitionsNoteStruct&) const = default; folly::dynamic toDynamic() const { folly::dynamic result = folly::dynamic::object(); result["color"] = ::facebook::react::toDynamic(color); result["backgroundColor"] = ::facebook::react::toDynamic(backgroundColor); return result; } #endif }; static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownMarkdownStyleBlockquoteAdmonitionsNoteStruct &result) { auto map = (std::unordered_map)value; auto tmp_color = map.find("color"); if (tmp_color != map.end()) { fromRawValue(context, tmp_color->second, result.color); } auto tmp_backgroundColor = map.find("backgroundColor"); if (tmp_backgroundColor != map.end()) { fromRawValue(context, tmp_backgroundColor->second, result.backgroundColor); } } static inline std::string toString(const EnrichedMarkdownMarkdownStyleBlockquoteAdmonitionsNoteStruct &value) { return "[Object EnrichedMarkdownMarkdownStyleBlockquoteAdmonitionsNoteStruct]"; } #ifdef RN_SERIALIZABLE_STATE static inline folly::dynamic toDynamic(const EnrichedMarkdownMarkdownStyleBlockquoteAdmonitionsNoteStruct &value) { return value.toDynamic(); } #endif struct EnrichedMarkdownMarkdownStyleBlockquoteAdmonitionsTipStruct { SharedColor color{}; SharedColor backgroundColor{}; #ifdef RN_SERIALIZABLE_STATE bool operator==(const EnrichedMarkdownMarkdownStyleBlockquoteAdmonitionsTipStruct&) const = default; folly::dynamic toDynamic() const { folly::dynamic result = folly::dynamic::object(); result["color"] = ::facebook::react::toDynamic(color); result["backgroundColor"] = ::facebook::react::toDynamic(backgroundColor); return result; } #endif }; static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownMarkdownStyleBlockquoteAdmonitionsTipStruct &result) { auto map = (std::unordered_map)value; auto tmp_color = map.find("color"); if (tmp_color != map.end()) { fromRawValue(context, tmp_color->second, result.color); } auto tmp_backgroundColor = map.find("backgroundColor"); if (tmp_backgroundColor != map.end()) { fromRawValue(context, tmp_backgroundColor->second, result.backgroundColor); } } static inline std::string toString(const EnrichedMarkdownMarkdownStyleBlockquoteAdmonitionsTipStruct &value) { return "[Object EnrichedMarkdownMarkdownStyleBlockquoteAdmonitionsTipStruct]"; } #ifdef RN_SERIALIZABLE_STATE static inline folly::dynamic toDynamic(const EnrichedMarkdownMarkdownStyleBlockquoteAdmonitionsTipStruct &value) { return value.toDynamic(); } #endif struct EnrichedMarkdownMarkdownStyleBlockquoteAdmonitionsImportantStruct { SharedColor color{}; SharedColor backgroundColor{}; #ifdef RN_SERIALIZABLE_STATE bool operator==(const EnrichedMarkdownMarkdownStyleBlockquoteAdmonitionsImportantStruct&) const = default; folly::dynamic toDynamic() const { folly::dynamic result = folly::dynamic::object(); result["color"] = ::facebook::react::toDynamic(color); result["backgroundColor"] = ::facebook::react::toDynamic(backgroundColor); return result; } #endif }; static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownMarkdownStyleBlockquoteAdmonitionsImportantStruct &result) { auto map = (std::unordered_map)value; auto tmp_color = map.find("color"); if (tmp_color != map.end()) { fromRawValue(context, tmp_color->second, result.color); } auto tmp_backgroundColor = map.find("backgroundColor"); if (tmp_backgroundColor != map.end()) { fromRawValue(context, tmp_backgroundColor->second, result.backgroundColor); } } static inline std::string toString(const EnrichedMarkdownMarkdownStyleBlockquoteAdmonitionsImportantStruct &value) { return "[Object EnrichedMarkdownMarkdownStyleBlockquoteAdmonitionsImportantStruct]"; } #ifdef RN_SERIALIZABLE_STATE static inline folly::dynamic toDynamic(const EnrichedMarkdownMarkdownStyleBlockquoteAdmonitionsImportantStruct &value) { return value.toDynamic(); } #endif struct EnrichedMarkdownMarkdownStyleBlockquoteAdmonitionsWarningStruct { SharedColor color{}; SharedColor backgroundColor{}; #ifdef RN_SERIALIZABLE_STATE bool operator==(const EnrichedMarkdownMarkdownStyleBlockquoteAdmonitionsWarningStruct&) const = default; folly::dynamic toDynamic() const { folly::dynamic result = folly::dynamic::object(); result["color"] = ::facebook::react::toDynamic(color); result["backgroundColor"] = ::facebook::react::toDynamic(backgroundColor); return result; } #endif }; static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownMarkdownStyleBlockquoteAdmonitionsWarningStruct &result) { auto map = (std::unordered_map)value; auto tmp_color = map.find("color"); if (tmp_color != map.end()) { fromRawValue(context, tmp_color->second, result.color); } auto tmp_backgroundColor = map.find("backgroundColor"); if (tmp_backgroundColor != map.end()) { fromRawValue(context, tmp_backgroundColor->second, result.backgroundColor); } } static inline std::string toString(const EnrichedMarkdownMarkdownStyleBlockquoteAdmonitionsWarningStruct &value) { return "[Object EnrichedMarkdownMarkdownStyleBlockquoteAdmonitionsWarningStruct]"; } #ifdef RN_SERIALIZABLE_STATE static inline folly::dynamic toDynamic(const EnrichedMarkdownMarkdownStyleBlockquoteAdmonitionsWarningStruct &value) { return value.toDynamic(); } #endif struct EnrichedMarkdownMarkdownStyleBlockquoteAdmonitionsCautionStruct { SharedColor color{}; SharedColor backgroundColor{}; #ifdef RN_SERIALIZABLE_STATE bool operator==(const EnrichedMarkdownMarkdownStyleBlockquoteAdmonitionsCautionStruct&) const = default; folly::dynamic toDynamic() const { folly::dynamic result = folly::dynamic::object(); result["color"] = ::facebook::react::toDynamic(color); result["backgroundColor"] = ::facebook::react::toDynamic(backgroundColor); return result; } #endif }; static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownMarkdownStyleBlockquoteAdmonitionsCautionStruct &result) { auto map = (std::unordered_map)value; auto tmp_color = map.find("color"); if (tmp_color != map.end()) { fromRawValue(context, tmp_color->second, result.color); } auto tmp_backgroundColor = map.find("backgroundColor"); if (tmp_backgroundColor != map.end()) { fromRawValue(context, tmp_backgroundColor->second, result.backgroundColor); } } static inline std::string toString(const EnrichedMarkdownMarkdownStyleBlockquoteAdmonitionsCautionStruct &value) { return "[Object EnrichedMarkdownMarkdownStyleBlockquoteAdmonitionsCautionStruct]"; } #ifdef RN_SERIALIZABLE_STATE static inline folly::dynamic toDynamic(const EnrichedMarkdownMarkdownStyleBlockquoteAdmonitionsCautionStruct &value) { return value.toDynamic(); } #endif struct EnrichedMarkdownMarkdownStyleBlockquoteAdmonitionsStruct { EnrichedMarkdownMarkdownStyleBlockquoteAdmonitionsNoteStruct note{}; EnrichedMarkdownMarkdownStyleBlockquoteAdmonitionsTipStruct tip{}; EnrichedMarkdownMarkdownStyleBlockquoteAdmonitionsImportantStruct important{}; EnrichedMarkdownMarkdownStyleBlockquoteAdmonitionsWarningStruct warning{}; EnrichedMarkdownMarkdownStyleBlockquoteAdmonitionsCautionStruct caution{}; #ifdef RN_SERIALIZABLE_STATE bool operator==(const EnrichedMarkdownMarkdownStyleBlockquoteAdmonitionsStruct&) const = default; folly::dynamic toDynamic() const { folly::dynamic result = folly::dynamic::object(); result["note"] = ::facebook::react::toDynamic(note); result["tip"] = ::facebook::react::toDynamic(tip); result["important"] = ::facebook::react::toDynamic(important); result["warning"] = ::facebook::react::toDynamic(warning); result["caution"] = ::facebook::react::toDynamic(caution); return result; } #endif }; static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownMarkdownStyleBlockquoteAdmonitionsStruct &result) { auto map = (std::unordered_map)value; auto tmp_note = map.find("note"); if (tmp_note != map.end()) { fromRawValue(context, tmp_note->second, result.note); } auto tmp_tip = map.find("tip"); if (tmp_tip != map.end()) { fromRawValue(context, tmp_tip->second, result.tip); } auto tmp_important = map.find("important"); if (tmp_important != map.end()) { fromRawValue(context, tmp_important->second, result.important); } auto tmp_warning = map.find("warning"); if (tmp_warning != map.end()) { fromRawValue(context, tmp_warning->second, result.warning); } auto tmp_caution = map.find("caution"); if (tmp_caution != map.end()) { fromRawValue(context, tmp_caution->second, result.caution); } } static inline std::string toString(const EnrichedMarkdownMarkdownStyleBlockquoteAdmonitionsStruct &value) { return "[Object EnrichedMarkdownMarkdownStyleBlockquoteAdmonitionsStruct]"; } #ifdef RN_SERIALIZABLE_STATE static inline folly::dynamic toDynamic(const EnrichedMarkdownMarkdownStyleBlockquoteAdmonitionsStruct &value) { return value.toDynamic(); } #endif struct EnrichedMarkdownMarkdownStyleBlockquoteStruct { Float fontSize{0.0}; std::string fontFamily{}; std::string fontWeight{}; SharedColor color{}; Float marginTop{0.0}; Float marginBottom{0.0}; Float lineHeight{0.0}; SharedColor borderColor{}; Float borderWidth{0.0}; Float gapWidth{0.0}; SharedColor backgroundColor{}; Float borderRadius{0.0}; Float padding{0.0}; EnrichedMarkdownMarkdownStyleBlockquoteAdmonitionsStruct admonitions{}; #ifdef RN_SERIALIZABLE_STATE bool operator==(const EnrichedMarkdownMarkdownStyleBlockquoteStruct&) const = default; folly::dynamic toDynamic() const { folly::dynamic result = folly::dynamic::object(); result["fontSize"] = fontSize; result["fontFamily"] = fontFamily; result["fontWeight"] = fontWeight; result["color"] = ::facebook::react::toDynamic(color); result["marginTop"] = marginTop; result["marginBottom"] = marginBottom; result["lineHeight"] = lineHeight; result["borderColor"] = ::facebook::react::toDynamic(borderColor); result["borderWidth"] = borderWidth; result["gapWidth"] = gapWidth; result["backgroundColor"] = ::facebook::react::toDynamic(backgroundColor); result["borderRadius"] = borderRadius; result["padding"] = padding; result["admonitions"] = ::facebook::react::toDynamic(admonitions); return result; } #endif }; static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownMarkdownStyleBlockquoteStruct &result) { auto map = (std::unordered_map)value; auto tmp_fontSize = map.find("fontSize"); if (tmp_fontSize != map.end()) { fromRawValue(context, tmp_fontSize->second, result.fontSize); } auto tmp_fontFamily = map.find("fontFamily"); if (tmp_fontFamily != map.end()) { fromRawValue(context, tmp_fontFamily->second, result.fontFamily); } auto tmp_fontWeight = map.find("fontWeight"); if (tmp_fontWeight != map.end()) { fromRawValue(context, tmp_fontWeight->second, result.fontWeight); } auto tmp_color = map.find("color"); if (tmp_color != map.end()) { fromRawValue(context, tmp_color->second, result.color); } auto tmp_marginTop = map.find("marginTop"); if (tmp_marginTop != map.end()) { fromRawValue(context, tmp_marginTop->second, result.marginTop); } auto tmp_marginBottom = map.find("marginBottom"); if (tmp_marginBottom != map.end()) { fromRawValue(context, tmp_marginBottom->second, result.marginBottom); } auto tmp_lineHeight = map.find("lineHeight"); if (tmp_lineHeight != map.end()) { fromRawValue(context, tmp_lineHeight->second, result.lineHeight); } auto tmp_borderColor = map.find("borderColor"); if (tmp_borderColor != map.end()) { fromRawValue(context, tmp_borderColor->second, result.borderColor); } auto tmp_borderWidth = map.find("borderWidth"); if (tmp_borderWidth != map.end()) { fromRawValue(context, tmp_borderWidth->second, result.borderWidth); } auto tmp_gapWidth = map.find("gapWidth"); if (tmp_gapWidth != map.end()) { fromRawValue(context, tmp_gapWidth->second, result.gapWidth); } auto tmp_backgroundColor = map.find("backgroundColor"); if (tmp_backgroundColor != map.end()) { fromRawValue(context, tmp_backgroundColor->second, result.backgroundColor); } auto tmp_borderRadius = map.find("borderRadius"); if (tmp_borderRadius != map.end()) { fromRawValue(context, tmp_borderRadius->second, result.borderRadius); } auto tmp_padding = map.find("padding"); if (tmp_padding != map.end()) { fromRawValue(context, tmp_padding->second, result.padding); } auto tmp_admonitions = map.find("admonitions"); if (tmp_admonitions != map.end()) { fromRawValue(context, tmp_admonitions->second, result.admonitions); } } static inline std::string toString(const EnrichedMarkdownMarkdownStyleBlockquoteStruct &value) { return "[Object EnrichedMarkdownMarkdownStyleBlockquoteStruct]"; } #ifdef RN_SERIALIZABLE_STATE static inline folly::dynamic toDynamic(const EnrichedMarkdownMarkdownStyleBlockquoteStruct &value) { return value.toDynamic(); } #endif struct EnrichedMarkdownMarkdownStyleListStruct { Float fontSize{0.0}; std::string fontFamily{}; std::string fontWeight{}; SharedColor color{}; Float marginTop{0.0}; Float marginBottom{0.0}; Float lineHeight{0.0}; SharedColor bulletColor{}; Float bulletSize{0.0}; Float markerMinWidth{0.0}; SharedColor markerColor{}; std::string markerFontWeight{}; Float gapWidth{0.0}; Float marginLeft{0.0}; Float itemSpacing{0.0}; #ifdef RN_SERIALIZABLE_STATE bool operator==(const EnrichedMarkdownMarkdownStyleListStruct&) const = default; folly::dynamic toDynamic() const { folly::dynamic result = folly::dynamic::object(); result["fontSize"] = fontSize; result["fontFamily"] = fontFamily; result["fontWeight"] = fontWeight; result["color"] = ::facebook::react::toDynamic(color); result["marginTop"] = marginTop; result["marginBottom"] = marginBottom; result["lineHeight"] = lineHeight; result["bulletColor"] = ::facebook::react::toDynamic(bulletColor); result["bulletSize"] = bulletSize; result["markerMinWidth"] = markerMinWidth; result["markerColor"] = ::facebook::react::toDynamic(markerColor); result["markerFontWeight"] = markerFontWeight; result["gapWidth"] = gapWidth; result["marginLeft"] = marginLeft; result["itemSpacing"] = itemSpacing; return result; } #endif }; static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownMarkdownStyleListStruct &result) { auto map = (std::unordered_map)value; auto tmp_fontSize = map.find("fontSize"); if (tmp_fontSize != map.end()) { fromRawValue(context, tmp_fontSize->second, result.fontSize); } auto tmp_fontFamily = map.find("fontFamily"); if (tmp_fontFamily != map.end()) { fromRawValue(context, tmp_fontFamily->second, result.fontFamily); } auto tmp_fontWeight = map.find("fontWeight"); if (tmp_fontWeight != map.end()) { fromRawValue(context, tmp_fontWeight->second, result.fontWeight); } auto tmp_color = map.find("color"); if (tmp_color != map.end()) { fromRawValue(context, tmp_color->second, result.color); } auto tmp_marginTop = map.find("marginTop"); if (tmp_marginTop != map.end()) { fromRawValue(context, tmp_marginTop->second, result.marginTop); } auto tmp_marginBottom = map.find("marginBottom"); if (tmp_marginBottom != map.end()) { fromRawValue(context, tmp_marginBottom->second, result.marginBottom); } auto tmp_lineHeight = map.find("lineHeight"); if (tmp_lineHeight != map.end()) { fromRawValue(context, tmp_lineHeight->second, result.lineHeight); } auto tmp_bulletColor = map.find("bulletColor"); if (tmp_bulletColor != map.end()) { fromRawValue(context, tmp_bulletColor->second, result.bulletColor); } auto tmp_bulletSize = map.find("bulletSize"); if (tmp_bulletSize != map.end()) { fromRawValue(context, tmp_bulletSize->second, result.bulletSize); } auto tmp_markerMinWidth = map.find("markerMinWidth"); if (tmp_markerMinWidth != map.end()) { fromRawValue(context, tmp_markerMinWidth->second, result.markerMinWidth); } auto tmp_markerColor = map.find("markerColor"); if (tmp_markerColor != map.end()) { fromRawValue(context, tmp_markerColor->second, result.markerColor); } auto tmp_markerFontWeight = map.find("markerFontWeight"); if (tmp_markerFontWeight != map.end()) { fromRawValue(context, tmp_markerFontWeight->second, result.markerFontWeight); } auto tmp_gapWidth = map.find("gapWidth"); if (tmp_gapWidth != map.end()) { fromRawValue(context, tmp_gapWidth->second, result.gapWidth); } auto tmp_marginLeft = map.find("marginLeft"); if (tmp_marginLeft != map.end()) { fromRawValue(context, tmp_marginLeft->second, result.marginLeft); } auto tmp_itemSpacing = map.find("itemSpacing"); if (tmp_itemSpacing != map.end()) { fromRawValue(context, tmp_itemSpacing->second, result.itemSpacing); } } static inline std::string toString(const EnrichedMarkdownMarkdownStyleListStruct &value) { return "[Object EnrichedMarkdownMarkdownStyleListStruct]"; } #ifdef RN_SERIALIZABLE_STATE static inline folly::dynamic toDynamic(const EnrichedMarkdownMarkdownStyleListStruct &value) { return value.toDynamic(); } #endif struct EnrichedMarkdownMarkdownStyleCodeBlockSyntaxColorsStruct { SharedColor keyword{}; SharedColor operatorColor{}; SharedColor punctuation{}; SharedColor string{}; SharedColor number{}; SharedColor constant{}; SharedColor comment{}; SharedColor function{}; SharedColor type{}; SharedColor variable{}; SharedColor property{}; SharedColor tag{}; SharedColor attribute{}; SharedColor embedded{}; #ifdef RN_SERIALIZABLE_STATE bool operator==(const EnrichedMarkdownMarkdownStyleCodeBlockSyntaxColorsStruct&) const = default; folly::dynamic toDynamic() const { folly::dynamic result = folly::dynamic::object(); result["keyword"] = ::facebook::react::toDynamic(keyword); result["operatorColor"] = ::facebook::react::toDynamic(operatorColor); result["punctuation"] = ::facebook::react::toDynamic(punctuation); result["string"] = ::facebook::react::toDynamic(string); result["number"] = ::facebook::react::toDynamic(number); result["constant"] = ::facebook::react::toDynamic(constant); result["comment"] = ::facebook::react::toDynamic(comment); result["function"] = ::facebook::react::toDynamic(function); result["type"] = ::facebook::react::toDynamic(type); result["variable"] = ::facebook::react::toDynamic(variable); result["property"] = ::facebook::react::toDynamic(property); result["tag"] = ::facebook::react::toDynamic(tag); result["attribute"] = ::facebook::react::toDynamic(attribute); result["embedded"] = ::facebook::react::toDynamic(embedded); return result; } #endif }; static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownMarkdownStyleCodeBlockSyntaxColorsStruct &result) { auto map = (std::unordered_map)value; auto tmp_keyword = map.find("keyword"); if (tmp_keyword != map.end()) { fromRawValue(context, tmp_keyword->second, result.keyword); } auto tmp_operatorColor = map.find("operatorColor"); if (tmp_operatorColor != map.end()) { fromRawValue(context, tmp_operatorColor->second, result.operatorColor); } auto tmp_punctuation = map.find("punctuation"); if (tmp_punctuation != map.end()) { fromRawValue(context, tmp_punctuation->second, result.punctuation); } auto tmp_string = map.find("string"); if (tmp_string != map.end()) { fromRawValue(context, tmp_string->second, result.string); } auto tmp_number = map.find("number"); if (tmp_number != map.end()) { fromRawValue(context, tmp_number->second, result.number); } auto tmp_constant = map.find("constant"); if (tmp_constant != map.end()) { fromRawValue(context, tmp_constant->second, result.constant); } auto tmp_comment = map.find("comment"); if (tmp_comment != map.end()) { fromRawValue(context, tmp_comment->second, result.comment); } auto tmp_function = map.find("function"); if (tmp_function != map.end()) { fromRawValue(context, tmp_function->second, result.function); } auto tmp_type = map.find("type"); if (tmp_type != map.end()) { fromRawValue(context, tmp_type->second, result.type); } auto tmp_variable = map.find("variable"); if (tmp_variable != map.end()) { fromRawValue(context, tmp_variable->second, result.variable); } auto tmp_property = map.find("property"); if (tmp_property != map.end()) { fromRawValue(context, tmp_property->second, result.property); } auto tmp_tag = map.find("tag"); if (tmp_tag != map.end()) { fromRawValue(context, tmp_tag->second, result.tag); } auto tmp_attribute = map.find("attribute"); if (tmp_attribute != map.end()) { fromRawValue(context, tmp_attribute->second, result.attribute); } auto tmp_embedded = map.find("embedded"); if (tmp_embedded != map.end()) { fromRawValue(context, tmp_embedded->second, result.embedded); } } static inline std::string toString(const EnrichedMarkdownMarkdownStyleCodeBlockSyntaxColorsStruct &value) { return "[Object EnrichedMarkdownMarkdownStyleCodeBlockSyntaxColorsStruct]"; } #ifdef RN_SERIALIZABLE_STATE static inline folly::dynamic toDynamic(const EnrichedMarkdownMarkdownStyleCodeBlockSyntaxColorsStruct &value) { return value.toDynamic(); } #endif struct EnrichedMarkdownMarkdownStyleCodeBlockStruct { Float fontSize{0.0}; std::string fontFamily{}; std::string fontWeight{}; SharedColor color{}; Float marginTop{0.0}; Float marginBottom{0.0}; Float lineHeight{0.0}; SharedColor backgroundColor{}; SharedColor borderColor{}; Float borderRadius{0.0}; Float borderWidth{0.0}; Float padding{0.0}; EnrichedMarkdownMarkdownStyleCodeBlockSyntaxColorsStruct syntaxColors{}; #ifdef RN_SERIALIZABLE_STATE bool operator==(const EnrichedMarkdownMarkdownStyleCodeBlockStruct&) const = default; folly::dynamic toDynamic() const { folly::dynamic result = folly::dynamic::object(); result["fontSize"] = fontSize; result["fontFamily"] = fontFamily; result["fontWeight"] = fontWeight; result["color"] = ::facebook::react::toDynamic(color); result["marginTop"] = marginTop; result["marginBottom"] = marginBottom; result["lineHeight"] = lineHeight; result["backgroundColor"] = ::facebook::react::toDynamic(backgroundColor); result["borderColor"] = ::facebook::react::toDynamic(borderColor); result["borderRadius"] = borderRadius; result["borderWidth"] = borderWidth; result["padding"] = padding; result["syntaxColors"] = ::facebook::react::toDynamic(syntaxColors); return result; } #endif }; static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownMarkdownStyleCodeBlockStruct &result) { auto map = (std::unordered_map)value; auto tmp_fontSize = map.find("fontSize"); if (tmp_fontSize != map.end()) { fromRawValue(context, tmp_fontSize->second, result.fontSize); } auto tmp_fontFamily = map.find("fontFamily"); if (tmp_fontFamily != map.end()) { fromRawValue(context, tmp_fontFamily->second, result.fontFamily); } auto tmp_fontWeight = map.find("fontWeight"); if (tmp_fontWeight != map.end()) { fromRawValue(context, tmp_fontWeight->second, result.fontWeight); } auto tmp_color = map.find("color"); if (tmp_color != map.end()) { fromRawValue(context, tmp_color->second, result.color); } auto tmp_marginTop = map.find("marginTop"); if (tmp_marginTop != map.end()) { fromRawValue(context, tmp_marginTop->second, result.marginTop); } auto tmp_marginBottom = map.find("marginBottom"); if (tmp_marginBottom != map.end()) { fromRawValue(context, tmp_marginBottom->second, result.marginBottom); } auto tmp_lineHeight = map.find("lineHeight"); if (tmp_lineHeight != map.end()) { fromRawValue(context, tmp_lineHeight->second, result.lineHeight); } auto tmp_backgroundColor = map.find("backgroundColor"); if (tmp_backgroundColor != map.end()) { fromRawValue(context, tmp_backgroundColor->second, result.backgroundColor); } auto tmp_borderColor = map.find("borderColor"); if (tmp_borderColor != map.end()) { fromRawValue(context, tmp_borderColor->second, result.borderColor); } auto tmp_borderRadius = map.find("borderRadius"); if (tmp_borderRadius != map.end()) { fromRawValue(context, tmp_borderRadius->second, result.borderRadius); } auto tmp_borderWidth = map.find("borderWidth"); if (tmp_borderWidth != map.end()) { fromRawValue(context, tmp_borderWidth->second, result.borderWidth); } auto tmp_padding = map.find("padding"); if (tmp_padding != map.end()) { fromRawValue(context, tmp_padding->second, result.padding); } auto tmp_syntaxColors = map.find("syntaxColors"); if (tmp_syntaxColors != map.end()) { fromRawValue(context, tmp_syntaxColors->second, result.syntaxColors); } } static inline std::string toString(const EnrichedMarkdownMarkdownStyleCodeBlockStruct &value) { return "[Object EnrichedMarkdownMarkdownStyleCodeBlockStruct]"; } #ifdef RN_SERIALIZABLE_STATE static inline folly::dynamic toDynamic(const EnrichedMarkdownMarkdownStyleCodeBlockStruct &value) { return value.toDynamic(); } #endif struct EnrichedMarkdownMarkdownStyleLinkStruct { std::string fontFamily{}; SharedColor color{}; bool underline{false}; SharedColor backgroundColor{}; #ifdef RN_SERIALIZABLE_STATE bool operator==(const EnrichedMarkdownMarkdownStyleLinkStruct&) const = default; folly::dynamic toDynamic() const { folly::dynamic result = folly::dynamic::object(); result["fontFamily"] = fontFamily; result["color"] = ::facebook::react::toDynamic(color); result["underline"] = underline; result["backgroundColor"] = ::facebook::react::toDynamic(backgroundColor); return result; } #endif }; static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownMarkdownStyleLinkStruct &result) { auto map = (std::unordered_map)value; auto tmp_fontFamily = map.find("fontFamily"); if (tmp_fontFamily != map.end()) { fromRawValue(context, tmp_fontFamily->second, result.fontFamily); } auto tmp_color = map.find("color"); if (tmp_color != map.end()) { fromRawValue(context, tmp_color->second, result.color); } auto tmp_underline = map.find("underline"); if (tmp_underline != map.end()) { fromRawValue(context, tmp_underline->second, result.underline); } auto tmp_backgroundColor = map.find("backgroundColor"); if (tmp_backgroundColor != map.end()) { fromRawValue(context, tmp_backgroundColor->second, result.backgroundColor); } } static inline std::string toString(const EnrichedMarkdownMarkdownStyleLinkStruct &value) { return "[Object EnrichedMarkdownMarkdownStyleLinkStruct]"; } #ifdef RN_SERIALIZABLE_STATE static inline folly::dynamic toDynamic(const EnrichedMarkdownMarkdownStyleLinkStruct &value) { return value.toDynamic(); } #endif struct EnrichedMarkdownMarkdownStyleLinkVariantsPillStruct { bool enabled{false}; std::string label{}; std::string iconUri{}; SharedColor iconTintColor{}; Float borderRadius{0.0}; Float paddingHorizontal{0.0}; Float paddingVertical{0.0}; Float lineHeight{0.0}; Float borderWidth{0.0}; SharedColor borderColor{}; Float maxWidth{0.0}; #ifdef RN_SERIALIZABLE_STATE bool operator==(const EnrichedMarkdownMarkdownStyleLinkVariantsPillStruct&) const = default; folly::dynamic toDynamic() const { folly::dynamic result = folly::dynamic::object(); result["enabled"] = enabled; result["label"] = label; result["iconUri"] = iconUri; result["iconTintColor"] = ::facebook::react::toDynamic(iconTintColor); result["borderRadius"] = borderRadius; result["paddingHorizontal"] = paddingHorizontal; result["paddingVertical"] = paddingVertical; result["lineHeight"] = lineHeight; result["borderWidth"] = borderWidth; result["borderColor"] = ::facebook::react::toDynamic(borderColor); result["maxWidth"] = maxWidth; return result; } #endif }; static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownMarkdownStyleLinkVariantsPillStruct &result) { auto map = (std::unordered_map)value; auto tmp_enabled = map.find("enabled"); if (tmp_enabled != map.end()) { fromRawValue(context, tmp_enabled->second, result.enabled); } auto tmp_label = map.find("label"); if (tmp_label != map.end()) { fromRawValue(context, tmp_label->second, result.label); } auto tmp_iconUri = map.find("iconUri"); if (tmp_iconUri != map.end()) { fromRawValue(context, tmp_iconUri->second, result.iconUri); } auto tmp_iconTintColor = map.find("iconTintColor"); if (tmp_iconTintColor != map.end()) { fromRawValue(context, tmp_iconTintColor->second, result.iconTintColor); } auto tmp_borderRadius = map.find("borderRadius"); if (tmp_borderRadius != map.end()) { fromRawValue(context, tmp_borderRadius->second, result.borderRadius); } auto tmp_paddingHorizontal = map.find("paddingHorizontal"); if (tmp_paddingHorizontal != map.end()) { fromRawValue(context, tmp_paddingHorizontal->second, result.paddingHorizontal); } auto tmp_paddingVertical = map.find("paddingVertical"); if (tmp_paddingVertical != map.end()) { fromRawValue(context, tmp_paddingVertical->second, result.paddingVertical); } auto tmp_lineHeight = map.find("lineHeight"); if (tmp_lineHeight != map.end()) { fromRawValue(context, tmp_lineHeight->second, result.lineHeight); } auto tmp_borderWidth = map.find("borderWidth"); if (tmp_borderWidth != map.end()) { fromRawValue(context, tmp_borderWidth->second, result.borderWidth); } auto tmp_borderColor = map.find("borderColor"); if (tmp_borderColor != map.end()) { fromRawValue(context, tmp_borderColor->second, result.borderColor); } auto tmp_maxWidth = map.find("maxWidth"); if (tmp_maxWidth != map.end()) { fromRawValue(context, tmp_maxWidth->second, result.maxWidth); } } static inline std::string toString(const EnrichedMarkdownMarkdownStyleLinkVariantsPillStruct &value) { return "[Object EnrichedMarkdownMarkdownStyleLinkVariantsPillStruct]"; } #ifdef RN_SERIALIZABLE_STATE static inline folly::dynamic toDynamic(const EnrichedMarkdownMarkdownStyleLinkVariantsPillStruct &value) { return value.toDynamic(); } #endif struct EnrichedMarkdownMarkdownStyleLinkVariantsStruct { std::string pattern{}; SharedColor color{}; bool underline{false}; SharedColor backgroundColor{}; std::string fontFamily{}; EnrichedMarkdownMarkdownStyleLinkVariantsPillStruct pill{}; #ifdef RN_SERIALIZABLE_STATE bool operator==(const EnrichedMarkdownMarkdownStyleLinkVariantsStruct&) const = default; folly::dynamic toDynamic() const { folly::dynamic result = folly::dynamic::object(); result["pattern"] = pattern; result["color"] = ::facebook::react::toDynamic(color); result["underline"] = underline; result["backgroundColor"] = ::facebook::react::toDynamic(backgroundColor); result["fontFamily"] = fontFamily; result["pill"] = ::facebook::react::toDynamic(pill); return result; } #endif }; static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownMarkdownStyleLinkVariantsStruct &result) { auto map = (std::unordered_map)value; auto tmp_pattern = map.find("pattern"); if (tmp_pattern != map.end()) { fromRawValue(context, tmp_pattern->second, result.pattern); } auto tmp_color = map.find("color"); if (tmp_color != map.end()) { fromRawValue(context, tmp_color->second, result.color); } auto tmp_underline = map.find("underline"); if (tmp_underline != map.end()) { fromRawValue(context, tmp_underline->second, result.underline); } auto tmp_backgroundColor = map.find("backgroundColor"); if (tmp_backgroundColor != map.end()) { fromRawValue(context, tmp_backgroundColor->second, result.backgroundColor); } auto tmp_fontFamily = map.find("fontFamily"); if (tmp_fontFamily != map.end()) { fromRawValue(context, tmp_fontFamily->second, result.fontFamily); } auto tmp_pill = map.find("pill"); if (tmp_pill != map.end()) { fromRawValue(context, tmp_pill->second, result.pill); } } static inline std::string toString(const EnrichedMarkdownMarkdownStyleLinkVariantsStruct &value) { return "[Object EnrichedMarkdownMarkdownStyleLinkVariantsStruct]"; } #ifdef RN_SERIALIZABLE_STATE static inline folly::dynamic toDynamic(const EnrichedMarkdownMarkdownStyleLinkVariantsStruct &value) { return value.toDynamic(); } #endif static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, std::vector &result) { auto items = (std::vector)value; for (const auto &item : items) { EnrichedMarkdownMarkdownStyleLinkVariantsStruct newItem; fromRawValue(context, item, newItem); result.emplace_back(newItem); } } struct EnrichedMarkdownMarkdownStyleStrongStruct { std::string fontFamily{}; std::string fontWeight{}; SharedColor color{}; #ifdef RN_SERIALIZABLE_STATE bool operator==(const EnrichedMarkdownMarkdownStyleStrongStruct&) const = default; folly::dynamic toDynamic() const { folly::dynamic result = folly::dynamic::object(); result["fontFamily"] = fontFamily; result["fontWeight"] = fontWeight; result["color"] = ::facebook::react::toDynamic(color); return result; } #endif }; static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownMarkdownStyleStrongStruct &result) { auto map = (std::unordered_map)value; auto tmp_fontFamily = map.find("fontFamily"); if (tmp_fontFamily != map.end()) { fromRawValue(context, tmp_fontFamily->second, result.fontFamily); } auto tmp_fontWeight = map.find("fontWeight"); if (tmp_fontWeight != map.end()) { fromRawValue(context, tmp_fontWeight->second, result.fontWeight); } auto tmp_color = map.find("color"); if (tmp_color != map.end()) { fromRawValue(context, tmp_color->second, result.color); } } static inline std::string toString(const EnrichedMarkdownMarkdownStyleStrongStruct &value) { return "[Object EnrichedMarkdownMarkdownStyleStrongStruct]"; } #ifdef RN_SERIALIZABLE_STATE static inline folly::dynamic toDynamic(const EnrichedMarkdownMarkdownStyleStrongStruct &value) { return value.toDynamic(); } #endif struct EnrichedMarkdownMarkdownStyleEmStruct { std::string fontFamily{}; std::string fontStyle{}; SharedColor color{}; #ifdef RN_SERIALIZABLE_STATE bool operator==(const EnrichedMarkdownMarkdownStyleEmStruct&) const = default; folly::dynamic toDynamic() const { folly::dynamic result = folly::dynamic::object(); result["fontFamily"] = fontFamily; result["fontStyle"] = fontStyle; result["color"] = ::facebook::react::toDynamic(color); return result; } #endif }; static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownMarkdownStyleEmStruct &result) { auto map = (std::unordered_map)value; auto tmp_fontFamily = map.find("fontFamily"); if (tmp_fontFamily != map.end()) { fromRawValue(context, tmp_fontFamily->second, result.fontFamily); } auto tmp_fontStyle = map.find("fontStyle"); if (tmp_fontStyle != map.end()) { fromRawValue(context, tmp_fontStyle->second, result.fontStyle); } auto tmp_color = map.find("color"); if (tmp_color != map.end()) { fromRawValue(context, tmp_color->second, result.color); } } static inline std::string toString(const EnrichedMarkdownMarkdownStyleEmStruct &value) { return "[Object EnrichedMarkdownMarkdownStyleEmStruct]"; } #ifdef RN_SERIALIZABLE_STATE static inline folly::dynamic toDynamic(const EnrichedMarkdownMarkdownStyleEmStruct &value) { return value.toDynamic(); } #endif struct EnrichedMarkdownMarkdownStyleStrikethroughStruct { SharedColor color{}; #ifdef RN_SERIALIZABLE_STATE bool operator==(const EnrichedMarkdownMarkdownStyleStrikethroughStruct&) const = default; folly::dynamic toDynamic() const { folly::dynamic result = folly::dynamic::object(); result["color"] = ::facebook::react::toDynamic(color); return result; } #endif }; static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownMarkdownStyleStrikethroughStruct &result) { auto map = (std::unordered_map)value; auto tmp_color = map.find("color"); if (tmp_color != map.end()) { fromRawValue(context, tmp_color->second, result.color); } } static inline std::string toString(const EnrichedMarkdownMarkdownStyleStrikethroughStruct &value) { return "[Object EnrichedMarkdownMarkdownStyleStrikethroughStruct]"; } #ifdef RN_SERIALIZABLE_STATE static inline folly::dynamic toDynamic(const EnrichedMarkdownMarkdownStyleStrikethroughStruct &value) { return value.toDynamic(); } #endif struct EnrichedMarkdownMarkdownStyleUnderlineStruct { SharedColor color{}; #ifdef RN_SERIALIZABLE_STATE bool operator==(const EnrichedMarkdownMarkdownStyleUnderlineStruct&) const = default; folly::dynamic toDynamic() const { folly::dynamic result = folly::dynamic::object(); result["color"] = ::facebook::react::toDynamic(color); return result; } #endif }; static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownMarkdownStyleUnderlineStruct &result) { auto map = (std::unordered_map)value; auto tmp_color = map.find("color"); if (tmp_color != map.end()) { fromRawValue(context, tmp_color->second, result.color); } } static inline std::string toString(const EnrichedMarkdownMarkdownStyleUnderlineStruct &value) { return "[Object EnrichedMarkdownMarkdownStyleUnderlineStruct]"; } #ifdef RN_SERIALIZABLE_STATE static inline folly::dynamic toDynamic(const EnrichedMarkdownMarkdownStyleUnderlineStruct &value) { return value.toDynamic(); } #endif struct EnrichedMarkdownMarkdownStyleCodeStruct { std::string fontFamily{}; Float fontSize{0.0}; Float fontScale{0.0}; SharedColor color{}; SharedColor backgroundColor{}; SharedColor borderColor{}; #ifdef RN_SERIALIZABLE_STATE bool operator==(const EnrichedMarkdownMarkdownStyleCodeStruct&) const = default; folly::dynamic toDynamic() const { folly::dynamic result = folly::dynamic::object(); result["fontFamily"] = fontFamily; result["fontSize"] = fontSize; result["fontScale"] = fontScale; result["color"] = ::facebook::react::toDynamic(color); result["backgroundColor"] = ::facebook::react::toDynamic(backgroundColor); result["borderColor"] = ::facebook::react::toDynamic(borderColor); return result; } #endif }; static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownMarkdownStyleCodeStruct &result) { auto map = (std::unordered_map)value; auto tmp_fontFamily = map.find("fontFamily"); if (tmp_fontFamily != map.end()) { fromRawValue(context, tmp_fontFamily->second, result.fontFamily); } auto tmp_fontSize = map.find("fontSize"); if (tmp_fontSize != map.end()) { fromRawValue(context, tmp_fontSize->second, result.fontSize); } auto tmp_fontScale = map.find("fontScale"); if (tmp_fontScale != map.end()) { fromRawValue(context, tmp_fontScale->second, result.fontScale); } auto tmp_color = map.find("color"); if (tmp_color != map.end()) { fromRawValue(context, tmp_color->second, result.color); } auto tmp_backgroundColor = map.find("backgroundColor"); if (tmp_backgroundColor != map.end()) { fromRawValue(context, tmp_backgroundColor->second, result.backgroundColor); } auto tmp_borderColor = map.find("borderColor"); if (tmp_borderColor != map.end()) { fromRawValue(context, tmp_borderColor->second, result.borderColor); } } static inline std::string toString(const EnrichedMarkdownMarkdownStyleCodeStruct &value) { return "[Object EnrichedMarkdownMarkdownStyleCodeStruct]"; } #ifdef RN_SERIALIZABLE_STATE static inline folly::dynamic toDynamic(const EnrichedMarkdownMarkdownStyleCodeStruct &value) { return value.toDynamic(); } #endif struct EnrichedMarkdownMarkdownStyleImageStruct { Float height{0.0}; Float maxHeight{0.0}; Float aspectRatio{0.0}; std::string resizeMode{}; Float borderRadius{0.0}; Float marginTop{0.0}; Float marginBottom{0.0}; #ifdef RN_SERIALIZABLE_STATE bool operator==(const EnrichedMarkdownMarkdownStyleImageStruct&) const = default; folly::dynamic toDynamic() const { folly::dynamic result = folly::dynamic::object(); result["height"] = height; result["maxHeight"] = maxHeight; result["aspectRatio"] = aspectRatio; result["resizeMode"] = resizeMode; result["borderRadius"] = borderRadius; result["marginTop"] = marginTop; result["marginBottom"] = marginBottom; return result; } #endif }; static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownMarkdownStyleImageStruct &result) { auto map = (std::unordered_map)value; auto tmp_height = map.find("height"); if (tmp_height != map.end()) { fromRawValue(context, tmp_height->second, result.height); } auto tmp_maxHeight = map.find("maxHeight"); if (tmp_maxHeight != map.end()) { fromRawValue(context, tmp_maxHeight->second, result.maxHeight); } auto tmp_aspectRatio = map.find("aspectRatio"); if (tmp_aspectRatio != map.end()) { fromRawValue(context, tmp_aspectRatio->second, result.aspectRatio); } auto tmp_resizeMode = map.find("resizeMode"); if (tmp_resizeMode != map.end()) { fromRawValue(context, tmp_resizeMode->second, result.resizeMode); } auto tmp_borderRadius = map.find("borderRadius"); if (tmp_borderRadius != map.end()) { fromRawValue(context, tmp_borderRadius->second, result.borderRadius); } auto tmp_marginTop = map.find("marginTop"); if (tmp_marginTop != map.end()) { fromRawValue(context, tmp_marginTop->second, result.marginTop); } auto tmp_marginBottom = map.find("marginBottom"); if (tmp_marginBottom != map.end()) { fromRawValue(context, tmp_marginBottom->second, result.marginBottom); } } static inline std::string toString(const EnrichedMarkdownMarkdownStyleImageStruct &value) { return "[Object EnrichedMarkdownMarkdownStyleImageStruct]"; } #ifdef RN_SERIALIZABLE_STATE static inline folly::dynamic toDynamic(const EnrichedMarkdownMarkdownStyleImageStruct &value) { return value.toDynamic(); } #endif struct EnrichedMarkdownMarkdownStyleVideoStruct { Float marginTop{0.0}; Float marginBottom{0.0}; Float borderRadius{0.0}; Float aspectRatio{0.0}; SharedColor backgroundColor{}; #ifdef RN_SERIALIZABLE_STATE bool operator==(const EnrichedMarkdownMarkdownStyleVideoStruct&) const = default; folly::dynamic toDynamic() const { folly::dynamic result = folly::dynamic::object(); result["marginTop"] = marginTop; result["marginBottom"] = marginBottom; result["borderRadius"] = borderRadius; result["aspectRatio"] = aspectRatio; result["backgroundColor"] = ::facebook::react::toDynamic(backgroundColor); return result; } #endif }; static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownMarkdownStyleVideoStruct &result) { auto map = (std::unordered_map)value; auto tmp_marginTop = map.find("marginTop"); if (tmp_marginTop != map.end()) { fromRawValue(context, tmp_marginTop->second, result.marginTop); } auto tmp_marginBottom = map.find("marginBottom"); if (tmp_marginBottom != map.end()) { fromRawValue(context, tmp_marginBottom->second, result.marginBottom); } auto tmp_borderRadius = map.find("borderRadius"); if (tmp_borderRadius != map.end()) { fromRawValue(context, tmp_borderRadius->second, result.borderRadius); } auto tmp_aspectRatio = map.find("aspectRatio"); if (tmp_aspectRatio != map.end()) { fromRawValue(context, tmp_aspectRatio->second, result.aspectRatio); } auto tmp_backgroundColor = map.find("backgroundColor"); if (tmp_backgroundColor != map.end()) { fromRawValue(context, tmp_backgroundColor->second, result.backgroundColor); } } static inline std::string toString(const EnrichedMarkdownMarkdownStyleVideoStruct &value) { return "[Object EnrichedMarkdownMarkdownStyleVideoStruct]"; } #ifdef RN_SERIALIZABLE_STATE static inline folly::dynamic toDynamic(const EnrichedMarkdownMarkdownStyleVideoStruct &value) { return value.toDynamic(); } #endif struct EnrichedMarkdownMarkdownStyleInlineImageStruct { Float size{0.0}; #ifdef RN_SERIALIZABLE_STATE bool operator==(const EnrichedMarkdownMarkdownStyleInlineImageStruct&) const = default; folly::dynamic toDynamic() const { folly::dynamic result = folly::dynamic::object(); result["size"] = size; return result; } #endif }; static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownMarkdownStyleInlineImageStruct &result) { auto map = (std::unordered_map)value; auto tmp_size = map.find("size"); if (tmp_size != map.end()) { fromRawValue(context, tmp_size->second, result.size); } } static inline std::string toString(const EnrichedMarkdownMarkdownStyleInlineImageStruct &value) { return "[Object EnrichedMarkdownMarkdownStyleInlineImageStruct]"; } #ifdef RN_SERIALIZABLE_STATE static inline folly::dynamic toDynamic(const EnrichedMarkdownMarkdownStyleInlineImageStruct &value) { return value.toDynamic(); } #endif struct EnrichedMarkdownMarkdownStyleThematicBreakStruct { SharedColor color{}; Float height{0.0}; Float marginTop{0.0}; Float marginBottom{0.0}; #ifdef RN_SERIALIZABLE_STATE bool operator==(const EnrichedMarkdownMarkdownStyleThematicBreakStruct&) const = default; folly::dynamic toDynamic() const { folly::dynamic result = folly::dynamic::object(); result["color"] = ::facebook::react::toDynamic(color); result["height"] = height; result["marginTop"] = marginTop; result["marginBottom"] = marginBottom; return result; } #endif }; static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownMarkdownStyleThematicBreakStruct &result) { auto map = (std::unordered_map)value; auto tmp_color = map.find("color"); if (tmp_color != map.end()) { fromRawValue(context, tmp_color->second, result.color); } auto tmp_height = map.find("height"); if (tmp_height != map.end()) { fromRawValue(context, tmp_height->second, result.height); } auto tmp_marginTop = map.find("marginTop"); if (tmp_marginTop != map.end()) { fromRawValue(context, tmp_marginTop->second, result.marginTop); } auto tmp_marginBottom = map.find("marginBottom"); if (tmp_marginBottom != map.end()) { fromRawValue(context, tmp_marginBottom->second, result.marginBottom); } } static inline std::string toString(const EnrichedMarkdownMarkdownStyleThematicBreakStruct &value) { return "[Object EnrichedMarkdownMarkdownStyleThematicBreakStruct]"; } #ifdef RN_SERIALIZABLE_STATE static inline folly::dynamic toDynamic(const EnrichedMarkdownMarkdownStyleThematicBreakStruct &value) { return value.toDynamic(); } #endif struct EnrichedMarkdownMarkdownStyleTableStruct { Float fontSize{0.0}; std::string fontFamily{}; std::string fontWeight{}; SharedColor color{}; Float marginTop{0.0}; Float marginBottom{0.0}; Float lineHeight{0.0}; std::string headerFontFamily{}; SharedColor headerBackgroundColor{}; SharedColor headerTextColor{}; SharedColor rowEvenBackgroundColor{}; SharedColor rowOddBackgroundColor{}; SharedColor borderColor{}; Float borderWidth{0.0}; Float borderRadius{0.0}; Float cellPaddingHorizontal{0.0}; Float cellPaddingVertical{0.0}; Float horizontalOverflow{0.0}; std::string align{}; #ifdef RN_SERIALIZABLE_STATE bool operator==(const EnrichedMarkdownMarkdownStyleTableStruct&) const = default; folly::dynamic toDynamic() const { folly::dynamic result = folly::dynamic::object(); result["fontSize"] = fontSize; result["fontFamily"] = fontFamily; result["fontWeight"] = fontWeight; result["color"] = ::facebook::react::toDynamic(color); result["marginTop"] = marginTop; result["marginBottom"] = marginBottom; result["lineHeight"] = lineHeight; result["headerFontFamily"] = headerFontFamily; result["headerBackgroundColor"] = ::facebook::react::toDynamic(headerBackgroundColor); result["headerTextColor"] = ::facebook::react::toDynamic(headerTextColor); result["rowEvenBackgroundColor"] = ::facebook::react::toDynamic(rowEvenBackgroundColor); result["rowOddBackgroundColor"] = ::facebook::react::toDynamic(rowOddBackgroundColor); result["borderColor"] = ::facebook::react::toDynamic(borderColor); result["borderWidth"] = borderWidth; result["borderRadius"] = borderRadius; result["cellPaddingHorizontal"] = cellPaddingHorizontal; result["cellPaddingVertical"] = cellPaddingVertical; result["horizontalOverflow"] = horizontalOverflow; result["align"] = align; return result; } #endif }; static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownMarkdownStyleTableStruct &result) { auto map = (std::unordered_map)value; auto tmp_fontSize = map.find("fontSize"); if (tmp_fontSize != map.end()) { fromRawValue(context, tmp_fontSize->second, result.fontSize); } auto tmp_fontFamily = map.find("fontFamily"); if (tmp_fontFamily != map.end()) { fromRawValue(context, tmp_fontFamily->second, result.fontFamily); } auto tmp_fontWeight = map.find("fontWeight"); if (tmp_fontWeight != map.end()) { fromRawValue(context, tmp_fontWeight->second, result.fontWeight); } auto tmp_color = map.find("color"); if (tmp_color != map.end()) { fromRawValue(context, tmp_color->second, result.color); } auto tmp_marginTop = map.find("marginTop"); if (tmp_marginTop != map.end()) { fromRawValue(context, tmp_marginTop->second, result.marginTop); } auto tmp_marginBottom = map.find("marginBottom"); if (tmp_marginBottom != map.end()) { fromRawValue(context, tmp_marginBottom->second, result.marginBottom); } auto tmp_lineHeight = map.find("lineHeight"); if (tmp_lineHeight != map.end()) { fromRawValue(context, tmp_lineHeight->second, result.lineHeight); } auto tmp_headerFontFamily = map.find("headerFontFamily"); if (tmp_headerFontFamily != map.end()) { fromRawValue(context, tmp_headerFontFamily->second, result.headerFontFamily); } auto tmp_headerBackgroundColor = map.find("headerBackgroundColor"); if (tmp_headerBackgroundColor != map.end()) { fromRawValue(context, tmp_headerBackgroundColor->second, result.headerBackgroundColor); } auto tmp_headerTextColor = map.find("headerTextColor"); if (tmp_headerTextColor != map.end()) { fromRawValue(context, tmp_headerTextColor->second, result.headerTextColor); } auto tmp_rowEvenBackgroundColor = map.find("rowEvenBackgroundColor"); if (tmp_rowEvenBackgroundColor != map.end()) { fromRawValue(context, tmp_rowEvenBackgroundColor->second, result.rowEvenBackgroundColor); } auto tmp_rowOddBackgroundColor = map.find("rowOddBackgroundColor"); if (tmp_rowOddBackgroundColor != map.end()) { fromRawValue(context, tmp_rowOddBackgroundColor->second, result.rowOddBackgroundColor); } auto tmp_borderColor = map.find("borderColor"); if (tmp_borderColor != map.end()) { fromRawValue(context, tmp_borderColor->second, result.borderColor); } auto tmp_borderWidth = map.find("borderWidth"); if (tmp_borderWidth != map.end()) { fromRawValue(context, tmp_borderWidth->second, result.borderWidth); } auto tmp_borderRadius = map.find("borderRadius"); if (tmp_borderRadius != map.end()) { fromRawValue(context, tmp_borderRadius->second, result.borderRadius); } auto tmp_cellPaddingHorizontal = map.find("cellPaddingHorizontal"); if (tmp_cellPaddingHorizontal != map.end()) { fromRawValue(context, tmp_cellPaddingHorizontal->second, result.cellPaddingHorizontal); } auto tmp_cellPaddingVertical = map.find("cellPaddingVertical"); if (tmp_cellPaddingVertical != map.end()) { fromRawValue(context, tmp_cellPaddingVertical->second, result.cellPaddingVertical); } auto tmp_horizontalOverflow = map.find("horizontalOverflow"); if (tmp_horizontalOverflow != map.end()) { fromRawValue(context, tmp_horizontalOverflow->second, result.horizontalOverflow); } auto tmp_align = map.find("align"); if (tmp_align != map.end()) { fromRawValue(context, tmp_align->second, result.align); } } static inline std::string toString(const EnrichedMarkdownMarkdownStyleTableStruct &value) { return "[Object EnrichedMarkdownMarkdownStyleTableStruct]"; } #ifdef RN_SERIALIZABLE_STATE static inline folly::dynamic toDynamic(const EnrichedMarkdownMarkdownStyleTableStruct &value) { return value.toDynamic(); } #endif struct EnrichedMarkdownMarkdownStyleTaskListStruct { SharedColor checkedColor{}; SharedColor borderColor{}; Float checkboxSize{0.0}; Float checkboxBorderRadius{0.0}; SharedColor checkmarkColor{}; SharedColor checkedTextColor{}; bool checkedStrikethrough{false}; #ifdef RN_SERIALIZABLE_STATE bool operator==(const EnrichedMarkdownMarkdownStyleTaskListStruct&) const = default; folly::dynamic toDynamic() const { folly::dynamic result = folly::dynamic::object(); result["checkedColor"] = ::facebook::react::toDynamic(checkedColor); result["borderColor"] = ::facebook::react::toDynamic(borderColor); result["checkboxSize"] = checkboxSize; result["checkboxBorderRadius"] = checkboxBorderRadius; result["checkmarkColor"] = ::facebook::react::toDynamic(checkmarkColor); result["checkedTextColor"] = ::facebook::react::toDynamic(checkedTextColor); result["checkedStrikethrough"] = checkedStrikethrough; return result; } #endif }; static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownMarkdownStyleTaskListStruct &result) { auto map = (std::unordered_map)value; auto tmp_checkedColor = map.find("checkedColor"); if (tmp_checkedColor != map.end()) { fromRawValue(context, tmp_checkedColor->second, result.checkedColor); } auto tmp_borderColor = map.find("borderColor"); if (tmp_borderColor != map.end()) { fromRawValue(context, tmp_borderColor->second, result.borderColor); } auto tmp_checkboxSize = map.find("checkboxSize"); if (tmp_checkboxSize != map.end()) { fromRawValue(context, tmp_checkboxSize->second, result.checkboxSize); } auto tmp_checkboxBorderRadius = map.find("checkboxBorderRadius"); if (tmp_checkboxBorderRadius != map.end()) { fromRawValue(context, tmp_checkboxBorderRadius->second, result.checkboxBorderRadius); } auto tmp_checkmarkColor = map.find("checkmarkColor"); if (tmp_checkmarkColor != map.end()) { fromRawValue(context, tmp_checkmarkColor->second, result.checkmarkColor); } auto tmp_checkedTextColor = map.find("checkedTextColor"); if (tmp_checkedTextColor != map.end()) { fromRawValue(context, tmp_checkedTextColor->second, result.checkedTextColor); } auto tmp_checkedStrikethrough = map.find("checkedStrikethrough"); if (tmp_checkedStrikethrough != map.end()) { fromRawValue(context, tmp_checkedStrikethrough->second, result.checkedStrikethrough); } } static inline std::string toString(const EnrichedMarkdownMarkdownStyleTaskListStruct &value) { return "[Object EnrichedMarkdownMarkdownStyleTaskListStruct]"; } #ifdef RN_SERIALIZABLE_STATE static inline folly::dynamic toDynamic(const EnrichedMarkdownMarkdownStyleTaskListStruct &value) { return value.toDynamic(); } #endif struct EnrichedMarkdownMarkdownStyleMathStruct { Float fontSize{0.0}; SharedColor color{}; SharedColor backgroundColor{}; Float padding{0.0}; Float marginTop{0.0}; Float marginBottom{0.0}; std::string textAlign{}; #ifdef RN_SERIALIZABLE_STATE bool operator==(const EnrichedMarkdownMarkdownStyleMathStruct&) const = default; folly::dynamic toDynamic() const { folly::dynamic result = folly::dynamic::object(); result["fontSize"] = fontSize; result["color"] = ::facebook::react::toDynamic(color); result["backgroundColor"] = ::facebook::react::toDynamic(backgroundColor); result["padding"] = padding; result["marginTop"] = marginTop; result["marginBottom"] = marginBottom; result["textAlign"] = textAlign; return result; } #endif }; static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownMarkdownStyleMathStruct &result) { auto map = (std::unordered_map)value; auto tmp_fontSize = map.find("fontSize"); if (tmp_fontSize != map.end()) { fromRawValue(context, tmp_fontSize->second, result.fontSize); } auto tmp_color = map.find("color"); if (tmp_color != map.end()) { fromRawValue(context, tmp_color->second, result.color); } auto tmp_backgroundColor = map.find("backgroundColor"); if (tmp_backgroundColor != map.end()) { fromRawValue(context, tmp_backgroundColor->second, result.backgroundColor); } auto tmp_padding = map.find("padding"); if (tmp_padding != map.end()) { fromRawValue(context, tmp_padding->second, result.padding); } auto tmp_marginTop = map.find("marginTop"); if (tmp_marginTop != map.end()) { fromRawValue(context, tmp_marginTop->second, result.marginTop); } auto tmp_marginBottom = map.find("marginBottom"); if (tmp_marginBottom != map.end()) { fromRawValue(context, tmp_marginBottom->second, result.marginBottom); } auto tmp_textAlign = map.find("textAlign"); if (tmp_textAlign != map.end()) { fromRawValue(context, tmp_textAlign->second, result.textAlign); } } static inline std::string toString(const EnrichedMarkdownMarkdownStyleMathStruct &value) { return "[Object EnrichedMarkdownMarkdownStyleMathStruct]"; } #ifdef RN_SERIALIZABLE_STATE static inline folly::dynamic toDynamic(const EnrichedMarkdownMarkdownStyleMathStruct &value) { return value.toDynamic(); } #endif struct EnrichedMarkdownMarkdownStyleInlineMathStruct { SharedColor color{}; #ifdef RN_SERIALIZABLE_STATE bool operator==(const EnrichedMarkdownMarkdownStyleInlineMathStruct&) const = default; folly::dynamic toDynamic() const { folly::dynamic result = folly::dynamic::object(); result["color"] = ::facebook::react::toDynamic(color); return result; } #endif }; static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownMarkdownStyleInlineMathStruct &result) { auto map = (std::unordered_map)value; auto tmp_color = map.find("color"); if (tmp_color != map.end()) { fromRawValue(context, tmp_color->second, result.color); } } static inline std::string toString(const EnrichedMarkdownMarkdownStyleInlineMathStruct &value) { return "[Object EnrichedMarkdownMarkdownStyleInlineMathStruct]"; } #ifdef RN_SERIALIZABLE_STATE static inline folly::dynamic toDynamic(const EnrichedMarkdownMarkdownStyleInlineMathStruct &value) { return value.toDynamic(); } #endif struct EnrichedMarkdownMarkdownStyleSpoilerParticlesStruct { Float density{0.0}; Float speed{0.0}; #ifdef RN_SERIALIZABLE_STATE bool operator==(const EnrichedMarkdownMarkdownStyleSpoilerParticlesStruct&) const = default; folly::dynamic toDynamic() const { folly::dynamic result = folly::dynamic::object(); result["density"] = density; result["speed"] = speed; return result; } #endif }; static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownMarkdownStyleSpoilerParticlesStruct &result) { auto map = (std::unordered_map)value; auto tmp_density = map.find("density"); if (tmp_density != map.end()) { fromRawValue(context, tmp_density->second, result.density); } auto tmp_speed = map.find("speed"); if (tmp_speed != map.end()) { fromRawValue(context, tmp_speed->second, result.speed); } } static inline std::string toString(const EnrichedMarkdownMarkdownStyleSpoilerParticlesStruct &value) { return "[Object EnrichedMarkdownMarkdownStyleSpoilerParticlesStruct]"; } #ifdef RN_SERIALIZABLE_STATE static inline folly::dynamic toDynamic(const EnrichedMarkdownMarkdownStyleSpoilerParticlesStruct &value) { return value.toDynamic(); } #endif struct EnrichedMarkdownMarkdownStyleSpoilerSolidStruct { Float borderRadius{0.0}; #ifdef RN_SERIALIZABLE_STATE bool operator==(const EnrichedMarkdownMarkdownStyleSpoilerSolidStruct&) const = default; folly::dynamic toDynamic() const { folly::dynamic result = folly::dynamic::object(); result["borderRadius"] = borderRadius; return result; } #endif }; static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownMarkdownStyleSpoilerSolidStruct &result) { auto map = (std::unordered_map)value; auto tmp_borderRadius = map.find("borderRadius"); if (tmp_borderRadius != map.end()) { fromRawValue(context, tmp_borderRadius->second, result.borderRadius); } } static inline std::string toString(const EnrichedMarkdownMarkdownStyleSpoilerSolidStruct &value) { return "[Object EnrichedMarkdownMarkdownStyleSpoilerSolidStruct]"; } #ifdef RN_SERIALIZABLE_STATE static inline folly::dynamic toDynamic(const EnrichedMarkdownMarkdownStyleSpoilerSolidStruct &value) { return value.toDynamic(); } #endif struct EnrichedMarkdownMarkdownStyleSpoilerStruct { SharedColor color{}; EnrichedMarkdownMarkdownStyleSpoilerParticlesStruct particles{}; EnrichedMarkdownMarkdownStyleSpoilerSolidStruct solid{}; #ifdef RN_SERIALIZABLE_STATE bool operator==(const EnrichedMarkdownMarkdownStyleSpoilerStruct&) const = default; folly::dynamic toDynamic() const { folly::dynamic result = folly::dynamic::object(); result["color"] = ::facebook::react::toDynamic(color); result["particles"] = ::facebook::react::toDynamic(particles); result["solid"] = ::facebook::react::toDynamic(solid); return result; } #endif }; static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownMarkdownStyleSpoilerStruct &result) { auto map = (std::unordered_map)value; auto tmp_color = map.find("color"); if (tmp_color != map.end()) { fromRawValue(context, tmp_color->second, result.color); } auto tmp_particles = map.find("particles"); if (tmp_particles != map.end()) { fromRawValue(context, tmp_particles->second, result.particles); } auto tmp_solid = map.find("solid"); if (tmp_solid != map.end()) { fromRawValue(context, tmp_solid->second, result.solid); } } static inline std::string toString(const EnrichedMarkdownMarkdownStyleSpoilerStruct &value) { return "[Object EnrichedMarkdownMarkdownStyleSpoilerStruct]"; } #ifdef RN_SERIALIZABLE_STATE static inline folly::dynamic toDynamic(const EnrichedMarkdownMarkdownStyleSpoilerStruct &value) { return value.toDynamic(); } #endif struct EnrichedMarkdownMarkdownStyleSuperscriptStruct { Float fontScale{0.0}; Float baselineOffsetScale{0.0}; #ifdef RN_SERIALIZABLE_STATE bool operator==(const EnrichedMarkdownMarkdownStyleSuperscriptStruct&) const = default; folly::dynamic toDynamic() const { folly::dynamic result = folly::dynamic::object(); result["fontScale"] = fontScale; result["baselineOffsetScale"] = baselineOffsetScale; return result; } #endif }; static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownMarkdownStyleSuperscriptStruct &result) { auto map = (std::unordered_map)value; auto tmp_fontScale = map.find("fontScale"); if (tmp_fontScale != map.end()) { fromRawValue(context, tmp_fontScale->second, result.fontScale); } auto tmp_baselineOffsetScale = map.find("baselineOffsetScale"); if (tmp_baselineOffsetScale != map.end()) { fromRawValue(context, tmp_baselineOffsetScale->second, result.baselineOffsetScale); } } static inline std::string toString(const EnrichedMarkdownMarkdownStyleSuperscriptStruct &value) { return "[Object EnrichedMarkdownMarkdownStyleSuperscriptStruct]"; } #ifdef RN_SERIALIZABLE_STATE static inline folly::dynamic toDynamic(const EnrichedMarkdownMarkdownStyleSuperscriptStruct &value) { return value.toDynamic(); } #endif struct EnrichedMarkdownMarkdownStyleSubscriptStruct { Float fontScale{0.0}; Float baselineOffsetScale{0.0}; #ifdef RN_SERIALIZABLE_STATE bool operator==(const EnrichedMarkdownMarkdownStyleSubscriptStruct&) const = default; folly::dynamic toDynamic() const { folly::dynamic result = folly::dynamic::object(); result["fontScale"] = fontScale; result["baselineOffsetScale"] = baselineOffsetScale; return result; } #endif }; static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownMarkdownStyleSubscriptStruct &result) { auto map = (std::unordered_map)value; auto tmp_fontScale = map.find("fontScale"); if (tmp_fontScale != map.end()) { fromRawValue(context, tmp_fontScale->second, result.fontScale); } auto tmp_baselineOffsetScale = map.find("baselineOffsetScale"); if (tmp_baselineOffsetScale != map.end()) { fromRawValue(context, tmp_baselineOffsetScale->second, result.baselineOffsetScale); } } static inline std::string toString(const EnrichedMarkdownMarkdownStyleSubscriptStruct &value) { return "[Object EnrichedMarkdownMarkdownStyleSubscriptStruct]"; } #ifdef RN_SERIALIZABLE_STATE static inline folly::dynamic toDynamic(const EnrichedMarkdownMarkdownStyleSubscriptStruct &value) { return value.toDynamic(); } #endif struct EnrichedMarkdownMarkdownStyleHighlightStruct { SharedColor color{}; SharedColor backgroundColor{}; #ifdef RN_SERIALIZABLE_STATE bool operator==(const EnrichedMarkdownMarkdownStyleHighlightStruct&) const = default; folly::dynamic toDynamic() const { folly::dynamic result = folly::dynamic::object(); result["color"] = ::facebook::react::toDynamic(color); result["backgroundColor"] = ::facebook::react::toDynamic(backgroundColor); return result; } #endif }; static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownMarkdownStyleHighlightStruct &result) { auto map = (std::unordered_map)value; auto tmp_color = map.find("color"); if (tmp_color != map.end()) { fromRawValue(context, tmp_color->second, result.color); } auto tmp_backgroundColor = map.find("backgroundColor"); if (tmp_backgroundColor != map.end()) { fromRawValue(context, tmp_backgroundColor->second, result.backgroundColor); } } static inline std::string toString(const EnrichedMarkdownMarkdownStyleHighlightStruct &value) { return "[Object EnrichedMarkdownMarkdownStyleHighlightStruct]"; } #ifdef RN_SERIALIZABLE_STATE static inline folly::dynamic toDynamic(const EnrichedMarkdownMarkdownStyleHighlightStruct &value) { return value.toDynamic(); } #endif struct EnrichedMarkdownMarkdownStyleStruct { EnrichedMarkdownMarkdownStyleParagraphStruct paragraph{}; EnrichedMarkdownMarkdownStyleH1Struct h1{}; EnrichedMarkdownMarkdownStyleH2Struct h2{}; EnrichedMarkdownMarkdownStyleH3Struct h3{}; EnrichedMarkdownMarkdownStyleH4Struct h4{}; EnrichedMarkdownMarkdownStyleH5Struct h5{}; EnrichedMarkdownMarkdownStyleH6Struct h6{}; EnrichedMarkdownMarkdownStyleBlockquoteStruct blockquote{}; EnrichedMarkdownMarkdownStyleListStruct list{}; EnrichedMarkdownMarkdownStyleCodeBlockStruct codeBlock{}; EnrichedMarkdownMarkdownStyleLinkStruct link{}; std::vector linkVariants{}; EnrichedMarkdownMarkdownStyleStrongStruct strong{}; EnrichedMarkdownMarkdownStyleEmStruct em{}; EnrichedMarkdownMarkdownStyleStrikethroughStruct strikethrough{}; EnrichedMarkdownMarkdownStyleUnderlineStruct underline{}; EnrichedMarkdownMarkdownStyleCodeStruct code{}; EnrichedMarkdownMarkdownStyleImageStruct image{}; EnrichedMarkdownMarkdownStyleVideoStruct video{}; EnrichedMarkdownMarkdownStyleInlineImageStruct inlineImage{}; EnrichedMarkdownMarkdownStyleThematicBreakStruct thematicBreak{}; EnrichedMarkdownMarkdownStyleTableStruct table{}; EnrichedMarkdownMarkdownStyleTaskListStruct taskList{}; EnrichedMarkdownMarkdownStyleMathStruct math{}; EnrichedMarkdownMarkdownStyleInlineMathStruct inlineMath{}; EnrichedMarkdownMarkdownStyleSpoilerStruct spoiler{}; EnrichedMarkdownMarkdownStyleSuperscriptStruct superscript{}; EnrichedMarkdownMarkdownStyleSubscriptStruct subscript{}; EnrichedMarkdownMarkdownStyleHighlightStruct highlight{}; #ifdef RN_SERIALIZABLE_STATE bool operator==(const EnrichedMarkdownMarkdownStyleStruct&) const = default; folly::dynamic toDynamic() const { folly::dynamic result = folly::dynamic::object(); result["paragraph"] = ::facebook::react::toDynamic(paragraph); result["h1"] = ::facebook::react::toDynamic(h1); result["h2"] = ::facebook::react::toDynamic(h2); result["h3"] = ::facebook::react::toDynamic(h3); result["h4"] = ::facebook::react::toDynamic(h4); result["h5"] = ::facebook::react::toDynamic(h5); result["h6"] = ::facebook::react::toDynamic(h6); result["blockquote"] = ::facebook::react::toDynamic(blockquote); result["list"] = ::facebook::react::toDynamic(list); result["codeBlock"] = ::facebook::react::toDynamic(codeBlock); result["link"] = ::facebook::react::toDynamic(link); result["linkVariants"] = ::facebook::react::toDynamic(linkVariants); result["strong"] = ::facebook::react::toDynamic(strong); result["em"] = ::facebook::react::toDynamic(em); result["strikethrough"] = ::facebook::react::toDynamic(strikethrough); result["underline"] = ::facebook::react::toDynamic(underline); result["code"] = ::facebook::react::toDynamic(code); result["image"] = ::facebook::react::toDynamic(image); result["video"] = ::facebook::react::toDynamic(video); result["inlineImage"] = ::facebook::react::toDynamic(inlineImage); result["thematicBreak"] = ::facebook::react::toDynamic(thematicBreak); result["table"] = ::facebook::react::toDynamic(table); result["taskList"] = ::facebook::react::toDynamic(taskList); result["math"] = ::facebook::react::toDynamic(math); result["inlineMath"] = ::facebook::react::toDynamic(inlineMath); result["spoiler"] = ::facebook::react::toDynamic(spoiler); result["superscript"] = ::facebook::react::toDynamic(superscript); result["subscript"] = ::facebook::react::toDynamic(subscript); result["highlight"] = ::facebook::react::toDynamic(highlight); return result; } #endif }; static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownMarkdownStyleStruct &result) { auto map = (std::unordered_map)value; auto tmp_paragraph = map.find("paragraph"); if (tmp_paragraph != map.end()) { fromRawValue(context, tmp_paragraph->second, result.paragraph); } auto tmp_h1 = map.find("h1"); if (tmp_h1 != map.end()) { fromRawValue(context, tmp_h1->second, result.h1); } auto tmp_h2 = map.find("h2"); if (tmp_h2 != map.end()) { fromRawValue(context, tmp_h2->second, result.h2); } auto tmp_h3 = map.find("h3"); if (tmp_h3 != map.end()) { fromRawValue(context, tmp_h3->second, result.h3); } auto tmp_h4 = map.find("h4"); if (tmp_h4 != map.end()) { fromRawValue(context, tmp_h4->second, result.h4); } auto tmp_h5 = map.find("h5"); if (tmp_h5 != map.end()) { fromRawValue(context, tmp_h5->second, result.h5); } auto tmp_h6 = map.find("h6"); if (tmp_h6 != map.end()) { fromRawValue(context, tmp_h6->second, result.h6); } auto tmp_blockquote = map.find("blockquote"); if (tmp_blockquote != map.end()) { fromRawValue(context, tmp_blockquote->second, result.blockquote); } auto tmp_list = map.find("list"); if (tmp_list != map.end()) { fromRawValue(context, tmp_list->second, result.list); } auto tmp_codeBlock = map.find("codeBlock"); if (tmp_codeBlock != map.end()) { fromRawValue(context, tmp_codeBlock->second, result.codeBlock); } auto tmp_link = map.find("link"); if (tmp_link != map.end()) { fromRawValue(context, tmp_link->second, result.link); } auto tmp_linkVariants = map.find("linkVariants"); if (tmp_linkVariants != map.end()) { fromRawValue(context, tmp_linkVariants->second, result.linkVariants); } auto tmp_strong = map.find("strong"); if (tmp_strong != map.end()) { fromRawValue(context, tmp_strong->second, result.strong); } auto tmp_em = map.find("em"); if (tmp_em != map.end()) { fromRawValue(context, tmp_em->second, result.em); } auto tmp_strikethrough = map.find("strikethrough"); if (tmp_strikethrough != map.end()) { fromRawValue(context, tmp_strikethrough->second, result.strikethrough); } auto tmp_underline = map.find("underline"); if (tmp_underline != map.end()) { fromRawValue(context, tmp_underline->second, result.underline); } auto tmp_code = map.find("code"); if (tmp_code != map.end()) { fromRawValue(context, tmp_code->second, result.code); } auto tmp_image = map.find("image"); if (tmp_image != map.end()) { fromRawValue(context, tmp_image->second, result.image); } auto tmp_video = map.find("video"); if (tmp_video != map.end()) { fromRawValue(context, tmp_video->second, result.video); } auto tmp_inlineImage = map.find("inlineImage"); if (tmp_inlineImage != map.end()) { fromRawValue(context, tmp_inlineImage->second, result.inlineImage); } auto tmp_thematicBreak = map.find("thematicBreak"); if (tmp_thematicBreak != map.end()) { fromRawValue(context, tmp_thematicBreak->second, result.thematicBreak); } auto tmp_table = map.find("table"); if (tmp_table != map.end()) { fromRawValue(context, tmp_table->second, result.table); } auto tmp_taskList = map.find("taskList"); if (tmp_taskList != map.end()) { fromRawValue(context, tmp_taskList->second, result.taskList); } auto tmp_math = map.find("math"); if (tmp_math != map.end()) { fromRawValue(context, tmp_math->second, result.math); } auto tmp_inlineMath = map.find("inlineMath"); if (tmp_inlineMath != map.end()) { fromRawValue(context, tmp_inlineMath->second, result.inlineMath); } auto tmp_spoiler = map.find("spoiler"); if (tmp_spoiler != map.end()) { fromRawValue(context, tmp_spoiler->second, result.spoiler); } auto tmp_superscript = map.find("superscript"); if (tmp_superscript != map.end()) { fromRawValue(context, tmp_superscript->second, result.superscript); } auto tmp_subscript = map.find("subscript"); if (tmp_subscript != map.end()) { fromRawValue(context, tmp_subscript->second, result.subscript); } auto tmp_highlight = map.find("highlight"); if (tmp_highlight != map.end()) { fromRawValue(context, tmp_highlight->second, result.highlight); } } static inline std::string toString(const EnrichedMarkdownMarkdownStyleStruct &value) { return "[Object EnrichedMarkdownMarkdownStyleStruct]"; } #ifdef RN_SERIALIZABLE_STATE static inline folly::dynamic toDynamic(const EnrichedMarkdownMarkdownStyleStruct &value) { return value.toDynamic(); } #endif struct EnrichedMarkdownMd4cFlagsStruct { bool underline{false}; bool superscript{false}; bool subscript{false}; bool latexMath{false}; bool highlight{false}; bool hardSoftBreaks{false}; bool preserveBlankLines{false}; bool admonitions{false}; #ifdef RN_SERIALIZABLE_STATE bool operator==(const EnrichedMarkdownMd4cFlagsStruct&) const = default; folly::dynamic toDynamic() const { folly::dynamic result = folly::dynamic::object(); result["underline"] = underline; result["superscript"] = superscript; result["subscript"] = subscript; result["latexMath"] = latexMath; result["highlight"] = highlight; result["hardSoftBreaks"] = hardSoftBreaks; result["preserveBlankLines"] = preserveBlankLines; result["admonitions"] = admonitions; return result; } #endif }; static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownMd4cFlagsStruct &result) { auto map = (std::unordered_map)value; auto tmp_underline = map.find("underline"); if (tmp_underline != map.end()) { fromRawValue(context, tmp_underline->second, result.underline); } auto tmp_superscript = map.find("superscript"); if (tmp_superscript != map.end()) { fromRawValue(context, tmp_superscript->second, result.superscript); } auto tmp_subscript = map.find("subscript"); if (tmp_subscript != map.end()) { fromRawValue(context, tmp_subscript->second, result.subscript); } auto tmp_latexMath = map.find("latexMath"); if (tmp_latexMath != map.end()) { fromRawValue(context, tmp_latexMath->second, result.latexMath); } auto tmp_highlight = map.find("highlight"); if (tmp_highlight != map.end()) { fromRawValue(context, tmp_highlight->second, result.highlight); } auto tmp_hardSoftBreaks = map.find("hardSoftBreaks"); if (tmp_hardSoftBreaks != map.end()) { fromRawValue(context, tmp_hardSoftBreaks->second, result.hardSoftBreaks); } auto tmp_preserveBlankLines = map.find("preserveBlankLines"); if (tmp_preserveBlankLines != map.end()) { fromRawValue(context, tmp_preserveBlankLines->second, result.preserveBlankLines); } auto tmp_admonitions = map.find("admonitions"); if (tmp_admonitions != map.end()) { fromRawValue(context, tmp_admonitions->second, result.admonitions); } } static inline std::string toString(const EnrichedMarkdownMd4cFlagsStruct &value) { return "[Object EnrichedMarkdownMd4cFlagsStruct]"; } #ifdef RN_SERIALIZABLE_STATE static inline folly::dynamic toDynamic(const EnrichedMarkdownMd4cFlagsStruct &value) { return value.toDynamic(); } #endif struct EnrichedMarkdownStreamingConfigStruct { std::string tableMode{}; std::string codeBlockMode{}; #ifdef RN_SERIALIZABLE_STATE bool operator==(const EnrichedMarkdownStreamingConfigStruct&) const = default; folly::dynamic toDynamic() const { folly::dynamic result = folly::dynamic::object(); result["tableMode"] = tableMode; result["codeBlockMode"] = codeBlockMode; return result; } #endif }; static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownStreamingConfigStruct &result) { auto map = (std::unordered_map)value; auto tmp_tableMode = map.find("tableMode"); if (tmp_tableMode != map.end()) { fromRawValue(context, tmp_tableMode->second, result.tableMode); } auto tmp_codeBlockMode = map.find("codeBlockMode"); if (tmp_codeBlockMode != map.end()) { fromRawValue(context, tmp_codeBlockMode->second, result.codeBlockMode); } } static inline std::string toString(const EnrichedMarkdownStreamingConfigStruct &value) { return "[Object EnrichedMarkdownStreamingConfigStruct]"; } #ifdef RN_SERIALIZABLE_STATE static inline folly::dynamic toDynamic(const EnrichedMarkdownStreamingConfigStruct &value) { return value.toDynamic(); } #endif struct EnrichedMarkdownContextMenuItemsStruct { std::string text{}; std::string icon{}; #ifdef RN_SERIALIZABLE_STATE bool operator==(const EnrichedMarkdownContextMenuItemsStruct&) const = default; folly::dynamic toDynamic() const { folly::dynamic result = folly::dynamic::object(); result["text"] = text; result["icon"] = icon; return result; } #endif }; static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownContextMenuItemsStruct &result) { auto map = (std::unordered_map)value; auto tmp_text = map.find("text"); if (tmp_text != map.end()) { fromRawValue(context, tmp_text->second, result.text); } auto tmp_icon = map.find("icon"); if (tmp_icon != map.end()) { fromRawValue(context, tmp_icon->second, result.icon); } } static inline std::string toString(const EnrichedMarkdownContextMenuItemsStruct &value) { return "[Object EnrichedMarkdownContextMenuItemsStruct]"; } #ifdef RN_SERIALIZABLE_STATE static inline folly::dynamic toDynamic(const EnrichedMarkdownContextMenuItemsStruct &value) { return value.toDynamic(); } #endif static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, std::vector &result) { auto items = (std::vector)value; for (const auto &item : items) { EnrichedMarkdownContextMenuItemsStruct newItem; fromRawValue(context, item, newItem); result.emplace_back(newItem); } } struct EnrichedMarkdownImageRequestHeadersStruct { std::string name{}; std::string value{}; #ifdef RN_SERIALIZABLE_STATE bool operator==(const EnrichedMarkdownImageRequestHeadersStruct&) const = default; folly::dynamic toDynamic() const { folly::dynamic result = folly::dynamic::object(); result["name"] = name; result["value"] = value; return result; } #endif }; static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownImageRequestHeadersStruct &result) { auto map = (std::unordered_map)value; auto tmp_name = map.find("name"); if (tmp_name != map.end()) { fromRawValue(context, tmp_name->second, result.name); } auto tmp_value = map.find("value"); if (tmp_value != map.end()) { fromRawValue(context, tmp_value->second, result.value); } } static inline std::string toString(const EnrichedMarkdownImageRequestHeadersStruct &value) { return "[Object EnrichedMarkdownImageRequestHeadersStruct]"; } #ifdef RN_SERIALIZABLE_STATE static inline folly::dynamic toDynamic(const EnrichedMarkdownImageRequestHeadersStruct &value) { return value.toDynamic(); } #endif static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, std::vector &result) { auto items = (std::vector)value; for (const auto &item : items) { EnrichedMarkdownImageRequestHeadersStruct newItem; fromRawValue(context, item, newItem); result.emplace_back(newItem); } } struct EnrichedMarkdownLinkPillContentStruct { std::string url{}; std::string label{}; std::string iconUri{}; SharedColor iconTintColor{}; #ifdef RN_SERIALIZABLE_STATE bool operator==(const EnrichedMarkdownLinkPillContentStruct&) const = default; folly::dynamic toDynamic() const { folly::dynamic result = folly::dynamic::object(); result["url"] = url; result["label"] = label; result["iconUri"] = iconUri; result["iconTintColor"] = ::facebook::react::toDynamic(iconTintColor); return result; } #endif }; static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownLinkPillContentStruct &result) { auto map = (std::unordered_map)value; auto tmp_url = map.find("url"); if (tmp_url != map.end()) { fromRawValue(context, tmp_url->second, result.url); } auto tmp_label = map.find("label"); if (tmp_label != map.end()) { fromRawValue(context, tmp_label->second, result.label); } auto tmp_iconUri = map.find("iconUri"); if (tmp_iconUri != map.end()) { fromRawValue(context, tmp_iconUri->second, result.iconUri); } auto tmp_iconTintColor = map.find("iconTintColor"); if (tmp_iconTintColor != map.end()) { fromRawValue(context, tmp_iconTintColor->second, result.iconTintColor); } } static inline std::string toString(const EnrichedMarkdownLinkPillContentStruct &value) { return "[Object EnrichedMarkdownLinkPillContentStruct]"; } #ifdef RN_SERIALIZABLE_STATE static inline folly::dynamic toDynamic(const EnrichedMarkdownLinkPillContentStruct &value) { return value.toDynamic(); } #endif static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, std::vector &result) { auto items = (std::vector)value; for (const auto &item : items) { EnrichedMarkdownLinkPillContentStruct newItem; fromRawValue(context, item, newItem); result.emplace_back(newItem); } } struct EnrichedMarkdownLinkRecognitionTextStruct { std::string pattern{}; bool caseInsensitive{false}; bool dotAll{false}; bool isDisabled{false}; bool isDefault{false}; #ifdef RN_SERIALIZABLE_STATE bool operator==(const EnrichedMarkdownLinkRecognitionTextStruct&) const = default; folly::dynamic toDynamic() const { folly::dynamic result = folly::dynamic::object(); result["pattern"] = pattern; result["caseInsensitive"] = caseInsensitive; result["dotAll"] = dotAll; result["isDisabled"] = isDisabled; result["isDefault"] = isDefault; return result; } #endif }; static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownLinkRecognitionTextStruct &result) { auto map = (std::unordered_map)value; auto tmp_pattern = map.find("pattern"); if (tmp_pattern != map.end()) { fromRawValue(context, tmp_pattern->second, result.pattern); } auto tmp_caseInsensitive = map.find("caseInsensitive"); if (tmp_caseInsensitive != map.end()) { fromRawValue(context, tmp_caseInsensitive->second, result.caseInsensitive); } auto tmp_dotAll = map.find("dotAll"); if (tmp_dotAll != map.end()) { fromRawValue(context, tmp_dotAll->second, result.dotAll); } auto tmp_isDisabled = map.find("isDisabled"); if (tmp_isDisabled != map.end()) { fromRawValue(context, tmp_isDisabled->second, result.isDisabled); } auto tmp_isDefault = map.find("isDefault"); if (tmp_isDefault != map.end()) { fromRawValue(context, tmp_isDefault->second, result.isDefault); } } static inline std::string toString(const EnrichedMarkdownLinkRecognitionTextStruct &value) { return "[Object EnrichedMarkdownLinkRecognitionTextStruct]"; } #ifdef RN_SERIALIZABLE_STATE static inline folly::dynamic toDynamic(const EnrichedMarkdownLinkRecognitionTextStruct &value) { return value.toDynamic(); } #endif struct EnrichedMarkdownLinkRecognitionInlineCodeStruct { std::string pattern{}; bool caseInsensitive{false}; bool dotAll{false}; bool isDisabled{false}; bool isDefault{false}; #ifdef RN_SERIALIZABLE_STATE bool operator==(const EnrichedMarkdownLinkRecognitionInlineCodeStruct&) const = default; folly::dynamic toDynamic() const { folly::dynamic result = folly::dynamic::object(); result["pattern"] = pattern; result["caseInsensitive"] = caseInsensitive; result["dotAll"] = dotAll; result["isDisabled"] = isDisabled; result["isDefault"] = isDefault; return result; } #endif }; static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownLinkRecognitionInlineCodeStruct &result) { auto map = (std::unordered_map)value; auto tmp_pattern = map.find("pattern"); if (tmp_pattern != map.end()) { fromRawValue(context, tmp_pattern->second, result.pattern); } auto tmp_caseInsensitive = map.find("caseInsensitive"); if (tmp_caseInsensitive != map.end()) { fromRawValue(context, tmp_caseInsensitive->second, result.caseInsensitive); } auto tmp_dotAll = map.find("dotAll"); if (tmp_dotAll != map.end()) { fromRawValue(context, tmp_dotAll->second, result.dotAll); } auto tmp_isDisabled = map.find("isDisabled"); if (tmp_isDisabled != map.end()) { fromRawValue(context, tmp_isDisabled->second, result.isDisabled); } auto tmp_isDefault = map.find("isDefault"); if (tmp_isDefault != map.end()) { fromRawValue(context, tmp_isDefault->second, result.isDefault); } } static inline std::string toString(const EnrichedMarkdownLinkRecognitionInlineCodeStruct &value) { return "[Object EnrichedMarkdownLinkRecognitionInlineCodeStruct]"; } #ifdef RN_SERIALIZABLE_STATE static inline folly::dynamic toDynamic(const EnrichedMarkdownLinkRecognitionInlineCodeStruct &value) { return value.toDynamic(); } #endif struct EnrichedMarkdownLinkRecognitionStruct { EnrichedMarkdownLinkRecognitionTextStruct text{}; EnrichedMarkdownLinkRecognitionInlineCodeStruct inlineCode{}; #ifdef RN_SERIALIZABLE_STATE bool operator==(const EnrichedMarkdownLinkRecognitionStruct&) const = default; folly::dynamic toDynamic() const { folly::dynamic result = folly::dynamic::object(); result["text"] = ::facebook::react::toDynamic(text); result["inlineCode"] = ::facebook::react::toDynamic(inlineCode); return result; } #endif }; static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownLinkRecognitionStruct &result) { auto map = (std::unordered_map)value; auto tmp_text = map.find("text"); if (tmp_text != map.end()) { fromRawValue(context, tmp_text->second, result.text); } auto tmp_inlineCode = map.find("inlineCode"); if (tmp_inlineCode != map.end()) { fromRawValue(context, tmp_inlineCode->second, result.inlineCode); } } static inline std::string toString(const EnrichedMarkdownLinkRecognitionStruct &value) { return "[Object EnrichedMarkdownLinkRecognitionStruct]"; } #ifdef RN_SERIALIZABLE_STATE static inline folly::dynamic toDynamic(const EnrichedMarkdownLinkRecognitionStruct &value) { return value.toDynamic(); } #endif struct EnrichedMarkdownLinkContextMenuItemsItemsStruct { std::string text{}; std::string icon{}; bool disabled{false}; bool destructive{false}; #ifdef RN_SERIALIZABLE_STATE bool operator==(const EnrichedMarkdownLinkContextMenuItemsItemsStruct&) const = default; folly::dynamic toDynamic() const { folly::dynamic result = folly::dynamic::object(); result["text"] = text; result["icon"] = icon; result["disabled"] = disabled; result["destructive"] = destructive; return result; } #endif }; static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownLinkContextMenuItemsItemsStruct &result) { auto map = (std::unordered_map)value; auto tmp_text = map.find("text"); if (tmp_text != map.end()) { fromRawValue(context, tmp_text->second, result.text); } auto tmp_icon = map.find("icon"); if (tmp_icon != map.end()) { fromRawValue(context, tmp_icon->second, result.icon); } auto tmp_disabled = map.find("disabled"); if (tmp_disabled != map.end()) { fromRawValue(context, tmp_disabled->second, result.disabled); } auto tmp_destructive = map.find("destructive"); if (tmp_destructive != map.end()) { fromRawValue(context, tmp_destructive->second, result.destructive); } } static inline std::string toString(const EnrichedMarkdownLinkContextMenuItemsItemsStruct &value) { return "[Object EnrichedMarkdownLinkContextMenuItemsItemsStruct]"; } #ifdef RN_SERIALIZABLE_STATE static inline folly::dynamic toDynamic(const EnrichedMarkdownLinkContextMenuItemsItemsStruct &value) { return value.toDynamic(); } #endif static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, std::vector &result) { auto items = (std::vector)value; for (const auto &item : items) { EnrichedMarkdownLinkContextMenuItemsItemsStruct newItem; fromRawValue(context, item, newItem); result.emplace_back(newItem); } } struct EnrichedMarkdownLinkContextMenuItemsStruct { std::string pattern{}; std::vector items{}; #ifdef RN_SERIALIZABLE_STATE bool operator==(const EnrichedMarkdownLinkContextMenuItemsStruct&) const = default; folly::dynamic toDynamic() const { folly::dynamic result = folly::dynamic::object(); result["pattern"] = pattern; result["items"] = ::facebook::react::toDynamic(items); return result; } #endif }; static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownLinkContextMenuItemsStruct &result) { auto map = (std::unordered_map)value; auto tmp_pattern = map.find("pattern"); if (tmp_pattern != map.end()) { fromRawValue(context, tmp_pattern->second, result.pattern); } auto tmp_items = map.find("items"); if (tmp_items != map.end()) { fromRawValue(context, tmp_items->second, result.items); } } static inline std::string toString(const EnrichedMarkdownLinkContextMenuItemsStruct &value) { return "[Object EnrichedMarkdownLinkContextMenuItemsStruct]"; } #ifdef RN_SERIALIZABLE_STATE static inline folly::dynamic toDynamic(const EnrichedMarkdownLinkContextMenuItemsStruct &value) { return value.toDynamic(); } #endif static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, std::vector &result) { auto items = (std::vector)value; for (const auto &item : items) { EnrichedMarkdownLinkContextMenuItemsStruct newItem; fromRawValue(context, item, newItem); result.emplace_back(newItem); } } struct EnrichedMarkdownSelectionMenuConfigStruct { bool copyAsMarkdown{false}; bool copyImageUrl{false}; std::string copyLabel{}; std::string copyAsMarkdownLabel{}; std::string copyImageUrlLabel{}; std::string copyImageUrlsLabel{}; std::vector copyImageUrlPluralTemplates{}; #ifdef RN_SERIALIZABLE_STATE bool operator==(const EnrichedMarkdownSelectionMenuConfigStruct&) const = default; folly::dynamic toDynamic() const { folly::dynamic result = folly::dynamic::object(); result["copyAsMarkdown"] = copyAsMarkdown; result["copyImageUrl"] = copyImageUrl; result["copyLabel"] = copyLabel; result["copyAsMarkdownLabel"] = copyAsMarkdownLabel; result["copyImageUrlLabel"] = copyImageUrlLabel; result["copyImageUrlsLabel"] = copyImageUrlsLabel; result["copyImageUrlPluralTemplates"] = ::facebook::react::toDynamic(copyImageUrlPluralTemplates); return result; } #endif }; static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownSelectionMenuConfigStruct &result) { auto map = (std::unordered_map)value; auto tmp_copyAsMarkdown = map.find("copyAsMarkdown"); if (tmp_copyAsMarkdown != map.end()) { fromRawValue(context, tmp_copyAsMarkdown->second, result.copyAsMarkdown); } auto tmp_copyImageUrl = map.find("copyImageUrl"); if (tmp_copyImageUrl != map.end()) { fromRawValue(context, tmp_copyImageUrl->second, result.copyImageUrl); } auto tmp_copyLabel = map.find("copyLabel"); if (tmp_copyLabel != map.end()) { fromRawValue(context, tmp_copyLabel->second, result.copyLabel); } auto tmp_copyAsMarkdownLabel = map.find("copyAsMarkdownLabel"); if (tmp_copyAsMarkdownLabel != map.end()) { fromRawValue(context, tmp_copyAsMarkdownLabel->second, result.copyAsMarkdownLabel); } auto tmp_copyImageUrlLabel = map.find("copyImageUrlLabel"); if (tmp_copyImageUrlLabel != map.end()) { fromRawValue(context, tmp_copyImageUrlLabel->second, result.copyImageUrlLabel); } auto tmp_copyImageUrlsLabel = map.find("copyImageUrlsLabel"); if (tmp_copyImageUrlsLabel != map.end()) { fromRawValue(context, tmp_copyImageUrlsLabel->second, result.copyImageUrlsLabel); } auto tmp_copyImageUrlPluralTemplates = map.find("copyImageUrlPluralTemplates"); if (tmp_copyImageUrlPluralTemplates != map.end()) { fromRawValue(context, tmp_copyImageUrlPluralTemplates->second, result.copyImageUrlPluralTemplates); } } static inline std::string toString(const EnrichedMarkdownSelectionMenuConfigStruct &value) { return "[Object EnrichedMarkdownSelectionMenuConfigStruct]"; } #ifdef RN_SERIALIZABLE_STATE static inline folly::dynamic toDynamic(const EnrichedMarkdownSelectionMenuConfigStruct &value) { return value.toDynamic(); } #endif struct EnrichedMarkdownAccessibilityLabelsListStruct { std::string bulletPoint{}; std::string nestedBulletPoint{}; std::string orderedItem{}; std::string nestedOrderedItem{}; #ifdef RN_SERIALIZABLE_STATE bool operator==(const EnrichedMarkdownAccessibilityLabelsListStruct&) const = default; folly::dynamic toDynamic() const { folly::dynamic result = folly::dynamic::object(); result["bulletPoint"] = bulletPoint; result["nestedBulletPoint"] = nestedBulletPoint; result["orderedItem"] = orderedItem; result["nestedOrderedItem"] = nestedOrderedItem; return result; } #endif }; static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownAccessibilityLabelsListStruct &result) { auto map = (std::unordered_map)value; auto tmp_bulletPoint = map.find("bulletPoint"); if (tmp_bulletPoint != map.end()) { fromRawValue(context, tmp_bulletPoint->second, result.bulletPoint); } auto tmp_nestedBulletPoint = map.find("nestedBulletPoint"); if (tmp_nestedBulletPoint != map.end()) { fromRawValue(context, tmp_nestedBulletPoint->second, result.nestedBulletPoint); } auto tmp_orderedItem = map.find("orderedItem"); if (tmp_orderedItem != map.end()) { fromRawValue(context, tmp_orderedItem->second, result.orderedItem); } auto tmp_nestedOrderedItem = map.find("nestedOrderedItem"); if (tmp_nestedOrderedItem != map.end()) { fromRawValue(context, tmp_nestedOrderedItem->second, result.nestedOrderedItem); } } static inline std::string toString(const EnrichedMarkdownAccessibilityLabelsListStruct &value) { return "[Object EnrichedMarkdownAccessibilityLabelsListStruct]"; } #ifdef RN_SERIALIZABLE_STATE static inline folly::dynamic toDynamic(const EnrichedMarkdownAccessibilityLabelsListStruct &value) { return value.toDynamic(); } #endif struct EnrichedMarkdownAccessibilityLabelsBlockquoteStruct { std::string quote{}; std::string nestedQuote{}; #ifdef RN_SERIALIZABLE_STATE bool operator==(const EnrichedMarkdownAccessibilityLabelsBlockquoteStruct&) const = default; folly::dynamic toDynamic() const { folly::dynamic result = folly::dynamic::object(); result["quote"] = quote; result["nestedQuote"] = nestedQuote; return result; } #endif }; static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownAccessibilityLabelsBlockquoteStruct &result) { auto map = (std::unordered_map)value; auto tmp_quote = map.find("quote"); if (tmp_quote != map.end()) { fromRawValue(context, tmp_quote->second, result.quote); } auto tmp_nestedQuote = map.find("nestedQuote"); if (tmp_nestedQuote != map.end()) { fromRawValue(context, tmp_nestedQuote->second, result.nestedQuote); } } static inline std::string toString(const EnrichedMarkdownAccessibilityLabelsBlockquoteStruct &value) { return "[Object EnrichedMarkdownAccessibilityLabelsBlockquoteStruct]"; } #ifdef RN_SERIALIZABLE_STATE static inline folly::dynamic toDynamic(const EnrichedMarkdownAccessibilityLabelsBlockquoteStruct &value) { return value.toDynamic(); } #endif struct EnrichedMarkdownAccessibilityLabelsTableStruct { std::string row{}; #ifdef RN_SERIALIZABLE_STATE bool operator==(const EnrichedMarkdownAccessibilityLabelsTableStruct&) const = default; folly::dynamic toDynamic() const { folly::dynamic result = folly::dynamic::object(); result["row"] = row; return result; } #endif }; static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownAccessibilityLabelsTableStruct &result) { auto map = (std::unordered_map)value; auto tmp_row = map.find("row"); if (tmp_row != map.end()) { fromRawValue(context, tmp_row->second, result.row); } } static inline std::string toString(const EnrichedMarkdownAccessibilityLabelsTableStruct &value) { return "[Object EnrichedMarkdownAccessibilityLabelsTableStruct]"; } #ifdef RN_SERIALIZABLE_STATE static inline folly::dynamic toDynamic(const EnrichedMarkdownAccessibilityLabelsTableStruct &value) { return value.toDynamic(); } #endif struct EnrichedMarkdownAccessibilityLabelsMathStruct { std::string equation{}; #ifdef RN_SERIALIZABLE_STATE bool operator==(const EnrichedMarkdownAccessibilityLabelsMathStruct&) const = default; folly::dynamic toDynamic() const { folly::dynamic result = folly::dynamic::object(); result["equation"] = equation; return result; } #endif }; static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownAccessibilityLabelsMathStruct &result) { auto map = (std::unordered_map)value; auto tmp_equation = map.find("equation"); if (tmp_equation != map.end()) { fromRawValue(context, tmp_equation->second, result.equation); } } static inline std::string toString(const EnrichedMarkdownAccessibilityLabelsMathStruct &value) { return "[Object EnrichedMarkdownAccessibilityLabelsMathStruct]"; } #ifdef RN_SERIALIZABLE_STATE static inline folly::dynamic toDynamic(const EnrichedMarkdownAccessibilityLabelsMathStruct &value) { return value.toDynamic(); } #endif struct EnrichedMarkdownAccessibilityLabelsRotorStruct { std::string headings{}; std::string links{}; std::string images{}; #ifdef RN_SERIALIZABLE_STATE bool operator==(const EnrichedMarkdownAccessibilityLabelsRotorStruct&) const = default; folly::dynamic toDynamic() const { folly::dynamic result = folly::dynamic::object(); result["headings"] = headings; result["links"] = links; result["images"] = images; return result; } #endif }; static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownAccessibilityLabelsRotorStruct &result) { auto map = (std::unordered_map)value; auto tmp_headings = map.find("headings"); if (tmp_headings != map.end()) { fromRawValue(context, tmp_headings->second, result.headings); } auto tmp_links = map.find("links"); if (tmp_links != map.end()) { fromRawValue(context, tmp_links->second, result.links); } auto tmp_images = map.find("images"); if (tmp_images != map.end()) { fromRawValue(context, tmp_images->second, result.images); } } static inline std::string toString(const EnrichedMarkdownAccessibilityLabelsRotorStruct &value) { return "[Object EnrichedMarkdownAccessibilityLabelsRotorStruct]"; } #ifdef RN_SERIALIZABLE_STATE static inline folly::dynamic toDynamic(const EnrichedMarkdownAccessibilityLabelsRotorStruct &value) { return value.toDynamic(); } #endif struct EnrichedMarkdownAccessibilityLabelsStruct { EnrichedMarkdownAccessibilityLabelsListStruct list{}; EnrichedMarkdownAccessibilityLabelsBlockquoteStruct blockquote{}; EnrichedMarkdownAccessibilityLabelsTableStruct table{}; EnrichedMarkdownAccessibilityLabelsMathStruct math{}; EnrichedMarkdownAccessibilityLabelsRotorStruct rotor{}; #ifdef RN_SERIALIZABLE_STATE bool operator==(const EnrichedMarkdownAccessibilityLabelsStruct&) const = default; folly::dynamic toDynamic() const { folly::dynamic result = folly::dynamic::object(); result["list"] = ::facebook::react::toDynamic(list); result["blockquote"] = ::facebook::react::toDynamic(blockquote); result["table"] = ::facebook::react::toDynamic(table); result["math"] = ::facebook::react::toDynamic(math); result["rotor"] = ::facebook::react::toDynamic(rotor); return result; } #endif }; static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownAccessibilityLabelsStruct &result) { auto map = (std::unordered_map)value; auto tmp_list = map.find("list"); if (tmp_list != map.end()) { fromRawValue(context, tmp_list->second, result.list); } auto tmp_blockquote = map.find("blockquote"); if (tmp_blockquote != map.end()) { fromRawValue(context, tmp_blockquote->second, result.blockquote); } auto tmp_table = map.find("table"); if (tmp_table != map.end()) { fromRawValue(context, tmp_table->second, result.table); } auto tmp_math = map.find("math"); if (tmp_math != map.end()) { fromRawValue(context, tmp_math->second, result.math); } auto tmp_rotor = map.find("rotor"); if (tmp_rotor != map.end()) { fromRawValue(context, tmp_rotor->second, result.rotor); } } static inline std::string toString(const EnrichedMarkdownAccessibilityLabelsStruct &value) { return "[Object EnrichedMarkdownAccessibilityLabelsStruct]"; } #ifdef RN_SERIALIZABLE_STATE static inline folly::dynamic toDynamic(const EnrichedMarkdownAccessibilityLabelsStruct &value) { return value.toDynamic(); } #endif class EnrichedMarkdownProps final : public ViewProps { public: EnrichedMarkdownProps() = default; EnrichedMarkdownProps(const PropsParserContext& context, const EnrichedMarkdownProps &sourceProps, const RawProps &rawProps); #pragma mark - Props std::string markdown{}; EnrichedMarkdownMarkdownStyleStruct markdownStyle{}; bool enableImagePress{false}; bool enableTaskListItemToggle{true}; bool enableCodeBlockPress{false}; bool enableBlockContextMenu{true}; bool enableLinkPreview{true}; bool selectable{false}; SharedColor selectionColor{}; SharedColor selectionHandleColor{}; EnrichedMarkdownMd4cFlagsStruct md4cFlags{}; bool isGFM{true}; bool allowFontScaling{true}; Float maxFontSizeMultiplier{0.0}; bool allowTrailingMargin{false}; bool streamingAnimation{false}; EnrichedMarkdownStreamingConfigStruct streamingConfig{}; std::string spoilerOverlay{std::string{"particles"}}; std::vector contextMenuItems{}; std::vector imageRequestHeaders{}; std::vector linkPillContent{}; EnrichedMarkdownLinkRecognitionStruct linkRecognition{}; std::vector linkContextMenuItems{}; EnrichedMarkdownSelectionMenuConfigStruct selectionMenuConfig{}; EnrichedMarkdownAccessibilityLabelsStruct accessibilityLabels{}; std::string textBreakStrategy{std::string{"highQuality"}}; std::string lineBreakStrategyIOS{std::string{"none"}}; std::string writingDirection{std::string{"first-strong"}}; int numberOfLines{0}; std::string ellipsizeMode{std::string{"tail"}}; #ifdef RN_SERIALIZABLE_STATE ComponentName getDiffPropsImplementationTarget() const override; folly::dynamic getDiffProps(const Props* prevProps) const override; #endif }; struct EnrichedMarkdownTextInputMarkdownShortcutsStruct { bool heading{false}; bool unorderedList{false}; bool orderedList{false}; #ifdef RN_SERIALIZABLE_STATE bool operator==(const EnrichedMarkdownTextInputMarkdownShortcutsStruct&) const = default; folly::dynamic toDynamic() const { folly::dynamic result = folly::dynamic::object(); result["heading"] = heading; result["unorderedList"] = unorderedList; result["orderedList"] = orderedList; return result; } #endif }; static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownTextInputMarkdownShortcutsStruct &result) { auto map = (std::unordered_map)value; auto tmp_heading = map.find("heading"); if (tmp_heading != map.end()) { fromRawValue(context, tmp_heading->second, result.heading); } auto tmp_unorderedList = map.find("unorderedList"); if (tmp_unorderedList != map.end()) { fromRawValue(context, tmp_unorderedList->second, result.unorderedList); } auto tmp_orderedList = map.find("orderedList"); if (tmp_orderedList != map.end()) { fromRawValue(context, tmp_orderedList->second, result.orderedList); } } static inline std::string toString(const EnrichedMarkdownTextInputMarkdownShortcutsStruct &value) { return "[Object EnrichedMarkdownTextInputMarkdownShortcutsStruct]"; } #ifdef RN_SERIALIZABLE_STATE static inline folly::dynamic toDynamic(const EnrichedMarkdownTextInputMarkdownShortcutsStruct &value) { return value.toDynamic(); } #endif struct EnrichedMarkdownTextInputMarkdownStyleStrongStruct { SharedColor color{}; #ifdef RN_SERIALIZABLE_STATE bool operator==(const EnrichedMarkdownTextInputMarkdownStyleStrongStruct&) const = default; folly::dynamic toDynamic() const { folly::dynamic result = folly::dynamic::object(); result["color"] = ::facebook::react::toDynamic(color); return result; } #endif }; static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownTextInputMarkdownStyleStrongStruct &result) { auto map = (std::unordered_map)value; auto tmp_color = map.find("color"); if (tmp_color != map.end()) { fromRawValue(context, tmp_color->second, result.color); } } static inline std::string toString(const EnrichedMarkdownTextInputMarkdownStyleStrongStruct &value) { return "[Object EnrichedMarkdownTextInputMarkdownStyleStrongStruct]"; } #ifdef RN_SERIALIZABLE_STATE static inline folly::dynamic toDynamic(const EnrichedMarkdownTextInputMarkdownStyleStrongStruct &value) { return value.toDynamic(); } #endif struct EnrichedMarkdownTextInputMarkdownStyleEmStruct { SharedColor color{}; #ifdef RN_SERIALIZABLE_STATE bool operator==(const EnrichedMarkdownTextInputMarkdownStyleEmStruct&) const = default; folly::dynamic toDynamic() const { folly::dynamic result = folly::dynamic::object(); result["color"] = ::facebook::react::toDynamic(color); return result; } #endif }; static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownTextInputMarkdownStyleEmStruct &result) { auto map = (std::unordered_map)value; auto tmp_color = map.find("color"); if (tmp_color != map.end()) { fromRawValue(context, tmp_color->second, result.color); } } static inline std::string toString(const EnrichedMarkdownTextInputMarkdownStyleEmStruct &value) { return "[Object EnrichedMarkdownTextInputMarkdownStyleEmStruct]"; } #ifdef RN_SERIALIZABLE_STATE static inline folly::dynamic toDynamic(const EnrichedMarkdownTextInputMarkdownStyleEmStruct &value) { return value.toDynamic(); } #endif struct EnrichedMarkdownTextInputMarkdownStyleLinkStruct { SharedColor color{}; bool underline{false}; SharedColor backgroundColor{}; #ifdef RN_SERIALIZABLE_STATE bool operator==(const EnrichedMarkdownTextInputMarkdownStyleLinkStruct&) const = default; folly::dynamic toDynamic() const { folly::dynamic result = folly::dynamic::object(); result["color"] = ::facebook::react::toDynamic(color); result["underline"] = underline; result["backgroundColor"] = ::facebook::react::toDynamic(backgroundColor); return result; } #endif }; static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownTextInputMarkdownStyleLinkStruct &result) { auto map = (std::unordered_map)value; auto tmp_color = map.find("color"); if (tmp_color != map.end()) { fromRawValue(context, tmp_color->second, result.color); } auto tmp_underline = map.find("underline"); if (tmp_underline != map.end()) { fromRawValue(context, tmp_underline->second, result.underline); } auto tmp_backgroundColor = map.find("backgroundColor"); if (tmp_backgroundColor != map.end()) { fromRawValue(context, tmp_backgroundColor->second, result.backgroundColor); } } static inline std::string toString(const EnrichedMarkdownTextInputMarkdownStyleLinkStruct &value) { return "[Object EnrichedMarkdownTextInputMarkdownStyleLinkStruct]"; } #ifdef RN_SERIALIZABLE_STATE static inline folly::dynamic toDynamic(const EnrichedMarkdownTextInputMarkdownStyleLinkStruct &value) { return value.toDynamic(); } #endif struct EnrichedMarkdownTextInputMarkdownStyleLinkVariantsStruct { std::string pattern{}; SharedColor color{}; bool underline{false}; SharedColor backgroundColor{}; #ifdef RN_SERIALIZABLE_STATE bool operator==(const EnrichedMarkdownTextInputMarkdownStyleLinkVariantsStruct&) const = default; folly::dynamic toDynamic() const { folly::dynamic result = folly::dynamic::object(); result["pattern"] = pattern; result["color"] = ::facebook::react::toDynamic(color); result["underline"] = underline; result["backgroundColor"] = ::facebook::react::toDynamic(backgroundColor); return result; } #endif }; static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownTextInputMarkdownStyleLinkVariantsStruct &result) { auto map = (std::unordered_map)value; auto tmp_pattern = map.find("pattern"); if (tmp_pattern != map.end()) { fromRawValue(context, tmp_pattern->second, result.pattern); } auto tmp_color = map.find("color"); if (tmp_color != map.end()) { fromRawValue(context, tmp_color->second, result.color); } auto tmp_underline = map.find("underline"); if (tmp_underline != map.end()) { fromRawValue(context, tmp_underline->second, result.underline); } auto tmp_backgroundColor = map.find("backgroundColor"); if (tmp_backgroundColor != map.end()) { fromRawValue(context, tmp_backgroundColor->second, result.backgroundColor); } } static inline std::string toString(const EnrichedMarkdownTextInputMarkdownStyleLinkVariantsStruct &value) { return "[Object EnrichedMarkdownTextInputMarkdownStyleLinkVariantsStruct]"; } #ifdef RN_SERIALIZABLE_STATE static inline folly::dynamic toDynamic(const EnrichedMarkdownTextInputMarkdownStyleLinkVariantsStruct &value) { return value.toDynamic(); } #endif static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, std::vector &result) { auto items = (std::vector)value; for (const auto &item : items) { EnrichedMarkdownTextInputMarkdownStyleLinkVariantsStruct newItem; fromRawValue(context, item, newItem); result.emplace_back(newItem); } } struct EnrichedMarkdownTextInputMarkdownStyleSpoilerStruct { SharedColor color{}; SharedColor backgroundColor{}; #ifdef RN_SERIALIZABLE_STATE bool operator==(const EnrichedMarkdownTextInputMarkdownStyleSpoilerStruct&) const = default; folly::dynamic toDynamic() const { folly::dynamic result = folly::dynamic::object(); result["color"] = ::facebook::react::toDynamic(color); result["backgroundColor"] = ::facebook::react::toDynamic(backgroundColor); return result; } #endif }; static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownTextInputMarkdownStyleSpoilerStruct &result) { auto map = (std::unordered_map)value; auto tmp_color = map.find("color"); if (tmp_color != map.end()) { fromRawValue(context, tmp_color->second, result.color); } auto tmp_backgroundColor = map.find("backgroundColor"); if (tmp_backgroundColor != map.end()) { fromRawValue(context, tmp_backgroundColor->second, result.backgroundColor); } } static inline std::string toString(const EnrichedMarkdownTextInputMarkdownStyleSpoilerStruct &value) { return "[Object EnrichedMarkdownTextInputMarkdownStyleSpoilerStruct]"; } #ifdef RN_SERIALIZABLE_STATE static inline folly::dynamic toDynamic(const EnrichedMarkdownTextInputMarkdownStyleSpoilerStruct &value) { return value.toDynamic(); } #endif struct EnrichedMarkdownTextInputMarkdownStyleH1Struct { Float fontSize{0.0}; std::string fontWeight{}; SharedColor color{}; #ifdef RN_SERIALIZABLE_STATE bool operator==(const EnrichedMarkdownTextInputMarkdownStyleH1Struct&) const = default; folly::dynamic toDynamic() const { folly::dynamic result = folly::dynamic::object(); result["fontSize"] = fontSize; result["fontWeight"] = fontWeight; result["color"] = ::facebook::react::toDynamic(color); return result; } #endif }; static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownTextInputMarkdownStyleH1Struct &result) { auto map = (std::unordered_map)value; auto tmp_fontSize = map.find("fontSize"); if (tmp_fontSize != map.end()) { fromRawValue(context, tmp_fontSize->second, result.fontSize); } auto tmp_fontWeight = map.find("fontWeight"); if (tmp_fontWeight != map.end()) { fromRawValue(context, tmp_fontWeight->second, result.fontWeight); } auto tmp_color = map.find("color"); if (tmp_color != map.end()) { fromRawValue(context, tmp_color->second, result.color); } } static inline std::string toString(const EnrichedMarkdownTextInputMarkdownStyleH1Struct &value) { return "[Object EnrichedMarkdownTextInputMarkdownStyleH1Struct]"; } #ifdef RN_SERIALIZABLE_STATE static inline folly::dynamic toDynamic(const EnrichedMarkdownTextInputMarkdownStyleH1Struct &value) { return value.toDynamic(); } #endif struct EnrichedMarkdownTextInputMarkdownStyleH2Struct { Float fontSize{0.0}; std::string fontWeight{}; SharedColor color{}; #ifdef RN_SERIALIZABLE_STATE bool operator==(const EnrichedMarkdownTextInputMarkdownStyleH2Struct&) const = default; folly::dynamic toDynamic() const { folly::dynamic result = folly::dynamic::object(); result["fontSize"] = fontSize; result["fontWeight"] = fontWeight; result["color"] = ::facebook::react::toDynamic(color); return result; } #endif }; static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownTextInputMarkdownStyleH2Struct &result) { auto map = (std::unordered_map)value; auto tmp_fontSize = map.find("fontSize"); if (tmp_fontSize != map.end()) { fromRawValue(context, tmp_fontSize->second, result.fontSize); } auto tmp_fontWeight = map.find("fontWeight"); if (tmp_fontWeight != map.end()) { fromRawValue(context, tmp_fontWeight->second, result.fontWeight); } auto tmp_color = map.find("color"); if (tmp_color != map.end()) { fromRawValue(context, tmp_color->second, result.color); } } static inline std::string toString(const EnrichedMarkdownTextInputMarkdownStyleH2Struct &value) { return "[Object EnrichedMarkdownTextInputMarkdownStyleH2Struct]"; } #ifdef RN_SERIALIZABLE_STATE static inline folly::dynamic toDynamic(const EnrichedMarkdownTextInputMarkdownStyleH2Struct &value) { return value.toDynamic(); } #endif struct EnrichedMarkdownTextInputMarkdownStyleH3Struct { Float fontSize{0.0}; std::string fontWeight{}; SharedColor color{}; #ifdef RN_SERIALIZABLE_STATE bool operator==(const EnrichedMarkdownTextInputMarkdownStyleH3Struct&) const = default; folly::dynamic toDynamic() const { folly::dynamic result = folly::dynamic::object(); result["fontSize"] = fontSize; result["fontWeight"] = fontWeight; result["color"] = ::facebook::react::toDynamic(color); return result; } #endif }; static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownTextInputMarkdownStyleH3Struct &result) { auto map = (std::unordered_map)value; auto tmp_fontSize = map.find("fontSize"); if (tmp_fontSize != map.end()) { fromRawValue(context, tmp_fontSize->second, result.fontSize); } auto tmp_fontWeight = map.find("fontWeight"); if (tmp_fontWeight != map.end()) { fromRawValue(context, tmp_fontWeight->second, result.fontWeight); } auto tmp_color = map.find("color"); if (tmp_color != map.end()) { fromRawValue(context, tmp_color->second, result.color); } } static inline std::string toString(const EnrichedMarkdownTextInputMarkdownStyleH3Struct &value) { return "[Object EnrichedMarkdownTextInputMarkdownStyleH3Struct]"; } #ifdef RN_SERIALIZABLE_STATE static inline folly::dynamic toDynamic(const EnrichedMarkdownTextInputMarkdownStyleH3Struct &value) { return value.toDynamic(); } #endif struct EnrichedMarkdownTextInputMarkdownStyleH4Struct { Float fontSize{0.0}; std::string fontWeight{}; SharedColor color{}; #ifdef RN_SERIALIZABLE_STATE bool operator==(const EnrichedMarkdownTextInputMarkdownStyleH4Struct&) const = default; folly::dynamic toDynamic() const { folly::dynamic result = folly::dynamic::object(); result["fontSize"] = fontSize; result["fontWeight"] = fontWeight; result["color"] = ::facebook::react::toDynamic(color); return result; } #endif }; static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownTextInputMarkdownStyleH4Struct &result) { auto map = (std::unordered_map)value; auto tmp_fontSize = map.find("fontSize"); if (tmp_fontSize != map.end()) { fromRawValue(context, tmp_fontSize->second, result.fontSize); } auto tmp_fontWeight = map.find("fontWeight"); if (tmp_fontWeight != map.end()) { fromRawValue(context, tmp_fontWeight->second, result.fontWeight); } auto tmp_color = map.find("color"); if (tmp_color != map.end()) { fromRawValue(context, tmp_color->second, result.color); } } static inline std::string toString(const EnrichedMarkdownTextInputMarkdownStyleH4Struct &value) { return "[Object EnrichedMarkdownTextInputMarkdownStyleH4Struct]"; } #ifdef RN_SERIALIZABLE_STATE static inline folly::dynamic toDynamic(const EnrichedMarkdownTextInputMarkdownStyleH4Struct &value) { return value.toDynamic(); } #endif struct EnrichedMarkdownTextInputMarkdownStyleH5Struct { Float fontSize{0.0}; std::string fontWeight{}; SharedColor color{}; #ifdef RN_SERIALIZABLE_STATE bool operator==(const EnrichedMarkdownTextInputMarkdownStyleH5Struct&) const = default; folly::dynamic toDynamic() const { folly::dynamic result = folly::dynamic::object(); result["fontSize"] = fontSize; result["fontWeight"] = fontWeight; result["color"] = ::facebook::react::toDynamic(color); return result; } #endif }; static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownTextInputMarkdownStyleH5Struct &result) { auto map = (std::unordered_map)value; auto tmp_fontSize = map.find("fontSize"); if (tmp_fontSize != map.end()) { fromRawValue(context, tmp_fontSize->second, result.fontSize); } auto tmp_fontWeight = map.find("fontWeight"); if (tmp_fontWeight != map.end()) { fromRawValue(context, tmp_fontWeight->second, result.fontWeight); } auto tmp_color = map.find("color"); if (tmp_color != map.end()) { fromRawValue(context, tmp_color->second, result.color); } } static inline std::string toString(const EnrichedMarkdownTextInputMarkdownStyleH5Struct &value) { return "[Object EnrichedMarkdownTextInputMarkdownStyleH5Struct]"; } #ifdef RN_SERIALIZABLE_STATE static inline folly::dynamic toDynamic(const EnrichedMarkdownTextInputMarkdownStyleH5Struct &value) { return value.toDynamic(); } #endif struct EnrichedMarkdownTextInputMarkdownStyleH6Struct { Float fontSize{0.0}; std::string fontWeight{}; SharedColor color{}; #ifdef RN_SERIALIZABLE_STATE bool operator==(const EnrichedMarkdownTextInputMarkdownStyleH6Struct&) const = default; folly::dynamic toDynamic() const { folly::dynamic result = folly::dynamic::object(); result["fontSize"] = fontSize; result["fontWeight"] = fontWeight; result["color"] = ::facebook::react::toDynamic(color); return result; } #endif }; static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownTextInputMarkdownStyleH6Struct &result) { auto map = (std::unordered_map)value; auto tmp_fontSize = map.find("fontSize"); if (tmp_fontSize != map.end()) { fromRawValue(context, tmp_fontSize->second, result.fontSize); } auto tmp_fontWeight = map.find("fontWeight"); if (tmp_fontWeight != map.end()) { fromRawValue(context, tmp_fontWeight->second, result.fontWeight); } auto tmp_color = map.find("color"); if (tmp_color != map.end()) { fromRawValue(context, tmp_color->second, result.color); } } static inline std::string toString(const EnrichedMarkdownTextInputMarkdownStyleH6Struct &value) { return "[Object EnrichedMarkdownTextInputMarkdownStyleH6Struct]"; } #ifdef RN_SERIALIZABLE_STATE static inline folly::dynamic toDynamic(const EnrichedMarkdownTextInputMarkdownStyleH6Struct &value) { return value.toDynamic(); } #endif struct EnrichedMarkdownTextInputMarkdownStyleListStruct { Float itemSpacing{0.0}; #ifdef RN_SERIALIZABLE_STATE bool operator==(const EnrichedMarkdownTextInputMarkdownStyleListStruct&) const = default; folly::dynamic toDynamic() const { folly::dynamic result = folly::dynamic::object(); result["itemSpacing"] = itemSpacing; return result; } #endif }; static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownTextInputMarkdownStyleListStruct &result) { auto map = (std::unordered_map)value; auto tmp_itemSpacing = map.find("itemSpacing"); if (tmp_itemSpacing != map.end()) { fromRawValue(context, tmp_itemSpacing->second, result.itemSpacing); } } static inline std::string toString(const EnrichedMarkdownTextInputMarkdownStyleListStruct &value) { return "[Object EnrichedMarkdownTextInputMarkdownStyleListStruct]"; } #ifdef RN_SERIALIZABLE_STATE static inline folly::dynamic toDynamic(const EnrichedMarkdownTextInputMarkdownStyleListStruct &value) { return value.toDynamic(); } #endif struct EnrichedMarkdownTextInputMarkdownStyleStruct { EnrichedMarkdownTextInputMarkdownStyleStrongStruct strong{}; EnrichedMarkdownTextInputMarkdownStyleEmStruct em{}; EnrichedMarkdownTextInputMarkdownStyleLinkStruct link{}; std::vector linkVariants{}; EnrichedMarkdownTextInputMarkdownStyleSpoilerStruct spoiler{}; EnrichedMarkdownTextInputMarkdownStyleH1Struct h1{}; EnrichedMarkdownTextInputMarkdownStyleH2Struct h2{}; EnrichedMarkdownTextInputMarkdownStyleH3Struct h3{}; EnrichedMarkdownTextInputMarkdownStyleH4Struct h4{}; EnrichedMarkdownTextInputMarkdownStyleH5Struct h5{}; EnrichedMarkdownTextInputMarkdownStyleH6Struct h6{}; EnrichedMarkdownTextInputMarkdownStyleListStruct list{}; #ifdef RN_SERIALIZABLE_STATE bool operator==(const EnrichedMarkdownTextInputMarkdownStyleStruct&) const = default; folly::dynamic toDynamic() const { folly::dynamic result = folly::dynamic::object(); result["strong"] = ::facebook::react::toDynamic(strong); result["em"] = ::facebook::react::toDynamic(em); result["link"] = ::facebook::react::toDynamic(link); result["linkVariants"] = ::facebook::react::toDynamic(linkVariants); result["spoiler"] = ::facebook::react::toDynamic(spoiler); result["h1"] = ::facebook::react::toDynamic(h1); result["h2"] = ::facebook::react::toDynamic(h2); result["h3"] = ::facebook::react::toDynamic(h3); result["h4"] = ::facebook::react::toDynamic(h4); result["h5"] = ::facebook::react::toDynamic(h5); result["h6"] = ::facebook::react::toDynamic(h6); result["list"] = ::facebook::react::toDynamic(list); return result; } #endif }; static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownTextInputMarkdownStyleStruct &result) { auto map = (std::unordered_map)value; auto tmp_strong = map.find("strong"); if (tmp_strong != map.end()) { fromRawValue(context, tmp_strong->second, result.strong); } auto tmp_em = map.find("em"); if (tmp_em != map.end()) { fromRawValue(context, tmp_em->second, result.em); } auto tmp_link = map.find("link"); if (tmp_link != map.end()) { fromRawValue(context, tmp_link->second, result.link); } auto tmp_linkVariants = map.find("linkVariants"); if (tmp_linkVariants != map.end()) { fromRawValue(context, tmp_linkVariants->second, result.linkVariants); } auto tmp_spoiler = map.find("spoiler"); if (tmp_spoiler != map.end()) { fromRawValue(context, tmp_spoiler->second, result.spoiler); } auto tmp_h1 = map.find("h1"); if (tmp_h1 != map.end()) { fromRawValue(context, tmp_h1->second, result.h1); } auto tmp_h2 = map.find("h2"); if (tmp_h2 != map.end()) { fromRawValue(context, tmp_h2->second, result.h2); } auto tmp_h3 = map.find("h3"); if (tmp_h3 != map.end()) { fromRawValue(context, tmp_h3->second, result.h3); } auto tmp_h4 = map.find("h4"); if (tmp_h4 != map.end()) { fromRawValue(context, tmp_h4->second, result.h4); } auto tmp_h5 = map.find("h5"); if (tmp_h5 != map.end()) { fromRawValue(context, tmp_h5->second, result.h5); } auto tmp_h6 = map.find("h6"); if (tmp_h6 != map.end()) { fromRawValue(context, tmp_h6->second, result.h6); } auto tmp_list = map.find("list"); if (tmp_list != map.end()) { fromRawValue(context, tmp_list->second, result.list); } } static inline std::string toString(const EnrichedMarkdownTextInputMarkdownStyleStruct &value) { return "[Object EnrichedMarkdownTextInputMarkdownStyleStruct]"; } #ifdef RN_SERIALIZABLE_STATE static inline folly::dynamic toDynamic(const EnrichedMarkdownTextInputMarkdownStyleStruct &value) { return value.toDynamic(); } #endif struct EnrichedMarkdownTextInputContextMenuItemsStruct { std::string text{}; std::string icon{}; #ifdef RN_SERIALIZABLE_STATE bool operator==(const EnrichedMarkdownTextInputContextMenuItemsStruct&) const = default; folly::dynamic toDynamic() const { folly::dynamic result = folly::dynamic::object(); result["text"] = text; result["icon"] = icon; return result; } #endif }; static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownTextInputContextMenuItemsStruct &result) { auto map = (std::unordered_map)value; auto tmp_text = map.find("text"); if (tmp_text != map.end()) { fromRawValue(context, tmp_text->second, result.text); } auto tmp_icon = map.find("icon"); if (tmp_icon != map.end()) { fromRawValue(context, tmp_icon->second, result.icon); } } static inline std::string toString(const EnrichedMarkdownTextInputContextMenuItemsStruct &value) { return "[Object EnrichedMarkdownTextInputContextMenuItemsStruct]"; } #ifdef RN_SERIALIZABLE_STATE static inline folly::dynamic toDynamic(const EnrichedMarkdownTextInputContextMenuItemsStruct &value) { return value.toDynamic(); } #endif static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, std::vector &result) { auto items = (std::vector)value; for (const auto &item : items) { EnrichedMarkdownTextInputContextMenuItemsStruct newItem; fromRawValue(context, item, newItem); result.emplace_back(newItem); } } struct EnrichedMarkdownTextInputSelectionMenuConfigStruct { bool format{false}; std::string formatLabel{}; bool copyAsMarkdown{false}; std::string copyAsMarkdownLabel{}; #ifdef RN_SERIALIZABLE_STATE bool operator==(const EnrichedMarkdownTextInputSelectionMenuConfigStruct&) const = default; folly::dynamic toDynamic() const { folly::dynamic result = folly::dynamic::object(); result["format"] = format; result["formatLabel"] = formatLabel; result["copyAsMarkdown"] = copyAsMarkdown; result["copyAsMarkdownLabel"] = copyAsMarkdownLabel; return result; } #endif }; static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownTextInputSelectionMenuConfigStruct &result) { auto map = (std::unordered_map)value; auto tmp_format = map.find("format"); if (tmp_format != map.end()) { fromRawValue(context, tmp_format->second, result.format); } auto tmp_formatLabel = map.find("formatLabel"); if (tmp_formatLabel != map.end()) { fromRawValue(context, tmp_formatLabel->second, result.formatLabel); } auto tmp_copyAsMarkdown = map.find("copyAsMarkdown"); if (tmp_copyAsMarkdown != map.end()) { fromRawValue(context, tmp_copyAsMarkdown->second, result.copyAsMarkdown); } auto tmp_copyAsMarkdownLabel = map.find("copyAsMarkdownLabel"); if (tmp_copyAsMarkdownLabel != map.end()) { fromRawValue(context, tmp_copyAsMarkdownLabel->second, result.copyAsMarkdownLabel); } } static inline std::string toString(const EnrichedMarkdownTextInputSelectionMenuConfigStruct &value) { return "[Object EnrichedMarkdownTextInputSelectionMenuConfigStruct]"; } #ifdef RN_SERIALIZABLE_STATE static inline folly::dynamic toDynamic(const EnrichedMarkdownTextInputSelectionMenuConfigStruct &value) { return value.toDynamic(); } #endif struct EnrichedMarkdownTextInputFormatMenuConfigStruct { bool bold{false}; std::string boldLabel{}; bool italic{false}; std::string italicLabel{}; bool underline{false}; std::string underlineLabel{}; bool strikethrough{false}; std::string strikethroughLabel{}; bool spoiler{false}; std::string spoilerLabel{}; bool link{false}; std::string linkLabel{}; #ifdef RN_SERIALIZABLE_STATE bool operator==(const EnrichedMarkdownTextInputFormatMenuConfigStruct&) const = default; folly::dynamic toDynamic() const { folly::dynamic result = folly::dynamic::object(); result["bold"] = bold; result["boldLabel"] = boldLabel; result["italic"] = italic; result["italicLabel"] = italicLabel; result["underline"] = underline; result["underlineLabel"] = underlineLabel; result["strikethrough"] = strikethrough; result["strikethroughLabel"] = strikethroughLabel; result["spoiler"] = spoiler; result["spoilerLabel"] = spoilerLabel; result["link"] = link; result["linkLabel"] = linkLabel; return result; } #endif }; static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownTextInputFormatMenuConfigStruct &result) { auto map = (std::unordered_map)value; auto tmp_bold = map.find("bold"); if (tmp_bold != map.end()) { fromRawValue(context, tmp_bold->second, result.bold); } auto tmp_boldLabel = map.find("boldLabel"); if (tmp_boldLabel != map.end()) { fromRawValue(context, tmp_boldLabel->second, result.boldLabel); } auto tmp_italic = map.find("italic"); if (tmp_italic != map.end()) { fromRawValue(context, tmp_italic->second, result.italic); } auto tmp_italicLabel = map.find("italicLabel"); if (tmp_italicLabel != map.end()) { fromRawValue(context, tmp_italicLabel->second, result.italicLabel); } auto tmp_underline = map.find("underline"); if (tmp_underline != map.end()) { fromRawValue(context, tmp_underline->second, result.underline); } auto tmp_underlineLabel = map.find("underlineLabel"); if (tmp_underlineLabel != map.end()) { fromRawValue(context, tmp_underlineLabel->second, result.underlineLabel); } auto tmp_strikethrough = map.find("strikethrough"); if (tmp_strikethrough != map.end()) { fromRawValue(context, tmp_strikethrough->second, result.strikethrough); } auto tmp_strikethroughLabel = map.find("strikethroughLabel"); if (tmp_strikethroughLabel != map.end()) { fromRawValue(context, tmp_strikethroughLabel->second, result.strikethroughLabel); } auto tmp_spoiler = map.find("spoiler"); if (tmp_spoiler != map.end()) { fromRawValue(context, tmp_spoiler->second, result.spoiler); } auto tmp_spoilerLabel = map.find("spoilerLabel"); if (tmp_spoilerLabel != map.end()) { fromRawValue(context, tmp_spoilerLabel->second, result.spoilerLabel); } auto tmp_link = map.find("link"); if (tmp_link != map.end()) { fromRawValue(context, tmp_link->second, result.link); } auto tmp_linkLabel = map.find("linkLabel"); if (tmp_linkLabel != map.end()) { fromRawValue(context, tmp_linkLabel->second, result.linkLabel); } } static inline std::string toString(const EnrichedMarkdownTextInputFormatMenuConfigStruct &value) { return "[Object EnrichedMarkdownTextInputFormatMenuConfigStruct]"; } #ifdef RN_SERIALIZABLE_STATE static inline folly::dynamic toDynamic(const EnrichedMarkdownTextInputFormatMenuConfigStruct &value) { return value.toDynamic(); } #endif struct EnrichedMarkdownTextInputLinkRegexStruct { std::string pattern{}; bool caseInsensitive{false}; bool dotAll{false}; bool isDisabled{false}; bool isDefault{false}; #ifdef RN_SERIALIZABLE_STATE bool operator==(const EnrichedMarkdownTextInputLinkRegexStruct&) const = default; folly::dynamic toDynamic() const { folly::dynamic result = folly::dynamic::object(); result["pattern"] = pattern; result["caseInsensitive"] = caseInsensitive; result["dotAll"] = dotAll; result["isDisabled"] = isDisabled; result["isDefault"] = isDefault; return result; } #endif }; static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownTextInputLinkRegexStruct &result) { auto map = (std::unordered_map)value; auto tmp_pattern = map.find("pattern"); if (tmp_pattern != map.end()) { fromRawValue(context, tmp_pattern->second, result.pattern); } auto tmp_caseInsensitive = map.find("caseInsensitive"); if (tmp_caseInsensitive != map.end()) { fromRawValue(context, tmp_caseInsensitive->second, result.caseInsensitive); } auto tmp_dotAll = map.find("dotAll"); if (tmp_dotAll != map.end()) { fromRawValue(context, tmp_dotAll->second, result.dotAll); } auto tmp_isDisabled = map.find("isDisabled"); if (tmp_isDisabled != map.end()) { fromRawValue(context, tmp_isDisabled->second, result.isDisabled); } auto tmp_isDefault = map.find("isDefault"); if (tmp_isDefault != map.end()) { fromRawValue(context, tmp_isDefault->second, result.isDefault); } } static inline std::string toString(const EnrichedMarkdownTextInputLinkRegexStruct &value) { return "[Object EnrichedMarkdownTextInputLinkRegexStruct]"; } #ifdef RN_SERIALIZABLE_STATE static inline folly::dynamic toDynamic(const EnrichedMarkdownTextInputLinkRegexStruct &value) { return value.toDynamic(); } #endif class EnrichedMarkdownTextInputProps final : public ViewProps { public: EnrichedMarkdownTextInputProps() = default; EnrichedMarkdownTextInputProps(const PropsParserContext& context, const EnrichedMarkdownTextInputProps &sourceProps, const RawProps &rawProps); #pragma mark - Props std::string defaultValue{}; std::string placeholder{}; SharedColor placeholderTextColor{}; bool editable{false}; bool autoFocus{false}; bool scrollEnabled{false}; EnrichedMarkdownTextInputMarkdownShortcutsStruct markdownShortcuts{}; std::string autoCapitalize{}; bool multiline{false}; SharedColor cursorColor{}; SharedColor selectionColor{}; EnrichedMarkdownTextInputMarkdownStyleStruct markdownStyle{}; SharedColor color{}; Float fontSize{0.0}; Float lineHeight{0.0}; std::string fontFamily{}; std::string fontWeight{}; bool isOnChangeMarkdownSet{false}; std::vector contextMenuItems{}; EnrichedMarkdownTextInputSelectionMenuConfigStruct selectionMenuConfig{}; EnrichedMarkdownTextInputFormatMenuConfigStruct formatMenuConfig{}; EnrichedMarkdownTextInputLinkRegexStruct linkRegex{}; std::vector mentionIndicators{}; std::string writingDirection{std::string{"first-strong"}}; #ifdef RN_SERIALIZABLE_STATE ComponentName getDiffPropsImplementationTarget() const override; folly::dynamic getDiffProps(const Props* prevProps) const override; #endif }; struct EnrichedMarkdownTextMarkdownStyleParagraphStruct { Float fontSize{0.0}; std::string fontFamily{}; std::string fontWeight{}; SharedColor color{}; Float marginTop{0.0}; Float marginBottom{0.0}; Float lineHeight{0.0}; std::string textAlign{}; #ifdef RN_SERIALIZABLE_STATE bool operator==(const EnrichedMarkdownTextMarkdownStyleParagraphStruct&) const = default; folly::dynamic toDynamic() const { folly::dynamic result = folly::dynamic::object(); result["fontSize"] = fontSize; result["fontFamily"] = fontFamily; result["fontWeight"] = fontWeight; result["color"] = ::facebook::react::toDynamic(color); result["marginTop"] = marginTop; result["marginBottom"] = marginBottom; result["lineHeight"] = lineHeight; result["textAlign"] = textAlign; return result; } #endif }; static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownTextMarkdownStyleParagraphStruct &result) { auto map = (std::unordered_map)value; auto tmp_fontSize = map.find("fontSize"); if (tmp_fontSize != map.end()) { fromRawValue(context, tmp_fontSize->second, result.fontSize); } auto tmp_fontFamily = map.find("fontFamily"); if (tmp_fontFamily != map.end()) { fromRawValue(context, tmp_fontFamily->second, result.fontFamily); } auto tmp_fontWeight = map.find("fontWeight"); if (tmp_fontWeight != map.end()) { fromRawValue(context, tmp_fontWeight->second, result.fontWeight); } auto tmp_color = map.find("color"); if (tmp_color != map.end()) { fromRawValue(context, tmp_color->second, result.color); } auto tmp_marginTop = map.find("marginTop"); if (tmp_marginTop != map.end()) { fromRawValue(context, tmp_marginTop->second, result.marginTop); } auto tmp_marginBottom = map.find("marginBottom"); if (tmp_marginBottom != map.end()) { fromRawValue(context, tmp_marginBottom->second, result.marginBottom); } auto tmp_lineHeight = map.find("lineHeight"); if (tmp_lineHeight != map.end()) { fromRawValue(context, tmp_lineHeight->second, result.lineHeight); } auto tmp_textAlign = map.find("textAlign"); if (tmp_textAlign != map.end()) { fromRawValue(context, tmp_textAlign->second, result.textAlign); } } static inline std::string toString(const EnrichedMarkdownTextMarkdownStyleParagraphStruct &value) { return "[Object EnrichedMarkdownTextMarkdownStyleParagraphStruct]"; } #ifdef RN_SERIALIZABLE_STATE static inline folly::dynamic toDynamic(const EnrichedMarkdownTextMarkdownStyleParagraphStruct &value) { return value.toDynamic(); } #endif struct EnrichedMarkdownTextMarkdownStyleH1Struct { Float fontSize{0.0}; std::string fontFamily{}; std::string fontWeight{}; SharedColor color{}; Float marginTop{0.0}; Float marginBottom{0.0}; Float lineHeight{0.0}; std::string textAlign{}; #ifdef RN_SERIALIZABLE_STATE bool operator==(const EnrichedMarkdownTextMarkdownStyleH1Struct&) const = default; folly::dynamic toDynamic() const { folly::dynamic result = folly::dynamic::object(); result["fontSize"] = fontSize; result["fontFamily"] = fontFamily; result["fontWeight"] = fontWeight; result["color"] = ::facebook::react::toDynamic(color); result["marginTop"] = marginTop; result["marginBottom"] = marginBottom; result["lineHeight"] = lineHeight; result["textAlign"] = textAlign; return result; } #endif }; static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownTextMarkdownStyleH1Struct &result) { auto map = (std::unordered_map)value; auto tmp_fontSize = map.find("fontSize"); if (tmp_fontSize != map.end()) { fromRawValue(context, tmp_fontSize->second, result.fontSize); } auto tmp_fontFamily = map.find("fontFamily"); if (tmp_fontFamily != map.end()) { fromRawValue(context, tmp_fontFamily->second, result.fontFamily); } auto tmp_fontWeight = map.find("fontWeight"); if (tmp_fontWeight != map.end()) { fromRawValue(context, tmp_fontWeight->second, result.fontWeight); } auto tmp_color = map.find("color"); if (tmp_color != map.end()) { fromRawValue(context, tmp_color->second, result.color); } auto tmp_marginTop = map.find("marginTop"); if (tmp_marginTop != map.end()) { fromRawValue(context, tmp_marginTop->second, result.marginTop); } auto tmp_marginBottom = map.find("marginBottom"); if (tmp_marginBottom != map.end()) { fromRawValue(context, tmp_marginBottom->second, result.marginBottom); } auto tmp_lineHeight = map.find("lineHeight"); if (tmp_lineHeight != map.end()) { fromRawValue(context, tmp_lineHeight->second, result.lineHeight); } auto tmp_textAlign = map.find("textAlign"); if (tmp_textAlign != map.end()) { fromRawValue(context, tmp_textAlign->second, result.textAlign); } } static inline std::string toString(const EnrichedMarkdownTextMarkdownStyleH1Struct &value) { return "[Object EnrichedMarkdownTextMarkdownStyleH1Struct]"; } #ifdef RN_SERIALIZABLE_STATE static inline folly::dynamic toDynamic(const EnrichedMarkdownTextMarkdownStyleH1Struct &value) { return value.toDynamic(); } #endif struct EnrichedMarkdownTextMarkdownStyleH2Struct { Float fontSize{0.0}; std::string fontFamily{}; std::string fontWeight{}; SharedColor color{}; Float marginTop{0.0}; Float marginBottom{0.0}; Float lineHeight{0.0}; std::string textAlign{}; #ifdef RN_SERIALIZABLE_STATE bool operator==(const EnrichedMarkdownTextMarkdownStyleH2Struct&) const = default; folly::dynamic toDynamic() const { folly::dynamic result = folly::dynamic::object(); result["fontSize"] = fontSize; result["fontFamily"] = fontFamily; result["fontWeight"] = fontWeight; result["color"] = ::facebook::react::toDynamic(color); result["marginTop"] = marginTop; result["marginBottom"] = marginBottom; result["lineHeight"] = lineHeight; result["textAlign"] = textAlign; return result; } #endif }; static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownTextMarkdownStyleH2Struct &result) { auto map = (std::unordered_map)value; auto tmp_fontSize = map.find("fontSize"); if (tmp_fontSize != map.end()) { fromRawValue(context, tmp_fontSize->second, result.fontSize); } auto tmp_fontFamily = map.find("fontFamily"); if (tmp_fontFamily != map.end()) { fromRawValue(context, tmp_fontFamily->second, result.fontFamily); } auto tmp_fontWeight = map.find("fontWeight"); if (tmp_fontWeight != map.end()) { fromRawValue(context, tmp_fontWeight->second, result.fontWeight); } auto tmp_color = map.find("color"); if (tmp_color != map.end()) { fromRawValue(context, tmp_color->second, result.color); } auto tmp_marginTop = map.find("marginTop"); if (tmp_marginTop != map.end()) { fromRawValue(context, tmp_marginTop->second, result.marginTop); } auto tmp_marginBottom = map.find("marginBottom"); if (tmp_marginBottom != map.end()) { fromRawValue(context, tmp_marginBottom->second, result.marginBottom); } auto tmp_lineHeight = map.find("lineHeight"); if (tmp_lineHeight != map.end()) { fromRawValue(context, tmp_lineHeight->second, result.lineHeight); } auto tmp_textAlign = map.find("textAlign"); if (tmp_textAlign != map.end()) { fromRawValue(context, tmp_textAlign->second, result.textAlign); } } static inline std::string toString(const EnrichedMarkdownTextMarkdownStyleH2Struct &value) { return "[Object EnrichedMarkdownTextMarkdownStyleH2Struct]"; } #ifdef RN_SERIALIZABLE_STATE static inline folly::dynamic toDynamic(const EnrichedMarkdownTextMarkdownStyleH2Struct &value) { return value.toDynamic(); } #endif struct EnrichedMarkdownTextMarkdownStyleH3Struct { Float fontSize{0.0}; std::string fontFamily{}; std::string fontWeight{}; SharedColor color{}; Float marginTop{0.0}; Float marginBottom{0.0}; Float lineHeight{0.0}; std::string textAlign{}; #ifdef RN_SERIALIZABLE_STATE bool operator==(const EnrichedMarkdownTextMarkdownStyleH3Struct&) const = default; folly::dynamic toDynamic() const { folly::dynamic result = folly::dynamic::object(); result["fontSize"] = fontSize; result["fontFamily"] = fontFamily; result["fontWeight"] = fontWeight; result["color"] = ::facebook::react::toDynamic(color); result["marginTop"] = marginTop; result["marginBottom"] = marginBottom; result["lineHeight"] = lineHeight; result["textAlign"] = textAlign; return result; } #endif }; static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownTextMarkdownStyleH3Struct &result) { auto map = (std::unordered_map)value; auto tmp_fontSize = map.find("fontSize"); if (tmp_fontSize != map.end()) { fromRawValue(context, tmp_fontSize->second, result.fontSize); } auto tmp_fontFamily = map.find("fontFamily"); if (tmp_fontFamily != map.end()) { fromRawValue(context, tmp_fontFamily->second, result.fontFamily); } auto tmp_fontWeight = map.find("fontWeight"); if (tmp_fontWeight != map.end()) { fromRawValue(context, tmp_fontWeight->second, result.fontWeight); } auto tmp_color = map.find("color"); if (tmp_color != map.end()) { fromRawValue(context, tmp_color->second, result.color); } auto tmp_marginTop = map.find("marginTop"); if (tmp_marginTop != map.end()) { fromRawValue(context, tmp_marginTop->second, result.marginTop); } auto tmp_marginBottom = map.find("marginBottom"); if (tmp_marginBottom != map.end()) { fromRawValue(context, tmp_marginBottom->second, result.marginBottom); } auto tmp_lineHeight = map.find("lineHeight"); if (tmp_lineHeight != map.end()) { fromRawValue(context, tmp_lineHeight->second, result.lineHeight); } auto tmp_textAlign = map.find("textAlign"); if (tmp_textAlign != map.end()) { fromRawValue(context, tmp_textAlign->second, result.textAlign); } } static inline std::string toString(const EnrichedMarkdownTextMarkdownStyleH3Struct &value) { return "[Object EnrichedMarkdownTextMarkdownStyleH3Struct]"; } #ifdef RN_SERIALIZABLE_STATE static inline folly::dynamic toDynamic(const EnrichedMarkdownTextMarkdownStyleH3Struct &value) { return value.toDynamic(); } #endif struct EnrichedMarkdownTextMarkdownStyleH4Struct { Float fontSize{0.0}; std::string fontFamily{}; std::string fontWeight{}; SharedColor color{}; Float marginTop{0.0}; Float marginBottom{0.0}; Float lineHeight{0.0}; std::string textAlign{}; #ifdef RN_SERIALIZABLE_STATE bool operator==(const EnrichedMarkdownTextMarkdownStyleH4Struct&) const = default; folly::dynamic toDynamic() const { folly::dynamic result = folly::dynamic::object(); result["fontSize"] = fontSize; result["fontFamily"] = fontFamily; result["fontWeight"] = fontWeight; result["color"] = ::facebook::react::toDynamic(color); result["marginTop"] = marginTop; result["marginBottom"] = marginBottom; result["lineHeight"] = lineHeight; result["textAlign"] = textAlign; return result; } #endif }; static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownTextMarkdownStyleH4Struct &result) { auto map = (std::unordered_map)value; auto tmp_fontSize = map.find("fontSize"); if (tmp_fontSize != map.end()) { fromRawValue(context, tmp_fontSize->second, result.fontSize); } auto tmp_fontFamily = map.find("fontFamily"); if (tmp_fontFamily != map.end()) { fromRawValue(context, tmp_fontFamily->second, result.fontFamily); } auto tmp_fontWeight = map.find("fontWeight"); if (tmp_fontWeight != map.end()) { fromRawValue(context, tmp_fontWeight->second, result.fontWeight); } auto tmp_color = map.find("color"); if (tmp_color != map.end()) { fromRawValue(context, tmp_color->second, result.color); } auto tmp_marginTop = map.find("marginTop"); if (tmp_marginTop != map.end()) { fromRawValue(context, tmp_marginTop->second, result.marginTop); } auto tmp_marginBottom = map.find("marginBottom"); if (tmp_marginBottom != map.end()) { fromRawValue(context, tmp_marginBottom->second, result.marginBottom); } auto tmp_lineHeight = map.find("lineHeight"); if (tmp_lineHeight != map.end()) { fromRawValue(context, tmp_lineHeight->second, result.lineHeight); } auto tmp_textAlign = map.find("textAlign"); if (tmp_textAlign != map.end()) { fromRawValue(context, tmp_textAlign->second, result.textAlign); } } static inline std::string toString(const EnrichedMarkdownTextMarkdownStyleH4Struct &value) { return "[Object EnrichedMarkdownTextMarkdownStyleH4Struct]"; } #ifdef RN_SERIALIZABLE_STATE static inline folly::dynamic toDynamic(const EnrichedMarkdownTextMarkdownStyleH4Struct &value) { return value.toDynamic(); } #endif struct EnrichedMarkdownTextMarkdownStyleH5Struct { Float fontSize{0.0}; std::string fontFamily{}; std::string fontWeight{}; SharedColor color{}; Float marginTop{0.0}; Float marginBottom{0.0}; Float lineHeight{0.0}; std::string textAlign{}; #ifdef RN_SERIALIZABLE_STATE bool operator==(const EnrichedMarkdownTextMarkdownStyleH5Struct&) const = default; folly::dynamic toDynamic() const { folly::dynamic result = folly::dynamic::object(); result["fontSize"] = fontSize; result["fontFamily"] = fontFamily; result["fontWeight"] = fontWeight; result["color"] = ::facebook::react::toDynamic(color); result["marginTop"] = marginTop; result["marginBottom"] = marginBottom; result["lineHeight"] = lineHeight; result["textAlign"] = textAlign; return result; } #endif }; static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownTextMarkdownStyleH5Struct &result) { auto map = (std::unordered_map)value; auto tmp_fontSize = map.find("fontSize"); if (tmp_fontSize != map.end()) { fromRawValue(context, tmp_fontSize->second, result.fontSize); } auto tmp_fontFamily = map.find("fontFamily"); if (tmp_fontFamily != map.end()) { fromRawValue(context, tmp_fontFamily->second, result.fontFamily); } auto tmp_fontWeight = map.find("fontWeight"); if (tmp_fontWeight != map.end()) { fromRawValue(context, tmp_fontWeight->second, result.fontWeight); } auto tmp_color = map.find("color"); if (tmp_color != map.end()) { fromRawValue(context, tmp_color->second, result.color); } auto tmp_marginTop = map.find("marginTop"); if (tmp_marginTop != map.end()) { fromRawValue(context, tmp_marginTop->second, result.marginTop); } auto tmp_marginBottom = map.find("marginBottom"); if (tmp_marginBottom != map.end()) { fromRawValue(context, tmp_marginBottom->second, result.marginBottom); } auto tmp_lineHeight = map.find("lineHeight"); if (tmp_lineHeight != map.end()) { fromRawValue(context, tmp_lineHeight->second, result.lineHeight); } auto tmp_textAlign = map.find("textAlign"); if (tmp_textAlign != map.end()) { fromRawValue(context, tmp_textAlign->second, result.textAlign); } } static inline std::string toString(const EnrichedMarkdownTextMarkdownStyleH5Struct &value) { return "[Object EnrichedMarkdownTextMarkdownStyleH5Struct]"; } #ifdef RN_SERIALIZABLE_STATE static inline folly::dynamic toDynamic(const EnrichedMarkdownTextMarkdownStyleH5Struct &value) { return value.toDynamic(); } #endif struct EnrichedMarkdownTextMarkdownStyleH6Struct { Float fontSize{0.0}; std::string fontFamily{}; std::string fontWeight{}; SharedColor color{}; Float marginTop{0.0}; Float marginBottom{0.0}; Float lineHeight{0.0}; std::string textAlign{}; #ifdef RN_SERIALIZABLE_STATE bool operator==(const EnrichedMarkdownTextMarkdownStyleH6Struct&) const = default; folly::dynamic toDynamic() const { folly::dynamic result = folly::dynamic::object(); result["fontSize"] = fontSize; result["fontFamily"] = fontFamily; result["fontWeight"] = fontWeight; result["color"] = ::facebook::react::toDynamic(color); result["marginTop"] = marginTop; result["marginBottom"] = marginBottom; result["lineHeight"] = lineHeight; result["textAlign"] = textAlign; return result; } #endif }; static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownTextMarkdownStyleH6Struct &result) { auto map = (std::unordered_map)value; auto tmp_fontSize = map.find("fontSize"); if (tmp_fontSize != map.end()) { fromRawValue(context, tmp_fontSize->second, result.fontSize); } auto tmp_fontFamily = map.find("fontFamily"); if (tmp_fontFamily != map.end()) { fromRawValue(context, tmp_fontFamily->second, result.fontFamily); } auto tmp_fontWeight = map.find("fontWeight"); if (tmp_fontWeight != map.end()) { fromRawValue(context, tmp_fontWeight->second, result.fontWeight); } auto tmp_color = map.find("color"); if (tmp_color != map.end()) { fromRawValue(context, tmp_color->second, result.color); } auto tmp_marginTop = map.find("marginTop"); if (tmp_marginTop != map.end()) { fromRawValue(context, tmp_marginTop->second, result.marginTop); } auto tmp_marginBottom = map.find("marginBottom"); if (tmp_marginBottom != map.end()) { fromRawValue(context, tmp_marginBottom->second, result.marginBottom); } auto tmp_lineHeight = map.find("lineHeight"); if (tmp_lineHeight != map.end()) { fromRawValue(context, tmp_lineHeight->second, result.lineHeight); } auto tmp_textAlign = map.find("textAlign"); if (tmp_textAlign != map.end()) { fromRawValue(context, tmp_textAlign->second, result.textAlign); } } static inline std::string toString(const EnrichedMarkdownTextMarkdownStyleH6Struct &value) { return "[Object EnrichedMarkdownTextMarkdownStyleH6Struct]"; } #ifdef RN_SERIALIZABLE_STATE static inline folly::dynamic toDynamic(const EnrichedMarkdownTextMarkdownStyleH6Struct &value) { return value.toDynamic(); } #endif struct EnrichedMarkdownTextMarkdownStyleBlockquoteAdmonitionsNoteStruct { SharedColor color{}; SharedColor backgroundColor{}; #ifdef RN_SERIALIZABLE_STATE bool operator==(const EnrichedMarkdownTextMarkdownStyleBlockquoteAdmonitionsNoteStruct&) const = default; folly::dynamic toDynamic() const { folly::dynamic result = folly::dynamic::object(); result["color"] = ::facebook::react::toDynamic(color); result["backgroundColor"] = ::facebook::react::toDynamic(backgroundColor); return result; } #endif }; static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownTextMarkdownStyleBlockquoteAdmonitionsNoteStruct &result) { auto map = (std::unordered_map)value; auto tmp_color = map.find("color"); if (tmp_color != map.end()) { fromRawValue(context, tmp_color->second, result.color); } auto tmp_backgroundColor = map.find("backgroundColor"); if (tmp_backgroundColor != map.end()) { fromRawValue(context, tmp_backgroundColor->second, result.backgroundColor); } } static inline std::string toString(const EnrichedMarkdownTextMarkdownStyleBlockquoteAdmonitionsNoteStruct &value) { return "[Object EnrichedMarkdownTextMarkdownStyleBlockquoteAdmonitionsNoteStruct]"; } #ifdef RN_SERIALIZABLE_STATE static inline folly::dynamic toDynamic(const EnrichedMarkdownTextMarkdownStyleBlockquoteAdmonitionsNoteStruct &value) { return value.toDynamic(); } #endif struct EnrichedMarkdownTextMarkdownStyleBlockquoteAdmonitionsTipStruct { SharedColor color{}; SharedColor backgroundColor{}; #ifdef RN_SERIALIZABLE_STATE bool operator==(const EnrichedMarkdownTextMarkdownStyleBlockquoteAdmonitionsTipStruct&) const = default; folly::dynamic toDynamic() const { folly::dynamic result = folly::dynamic::object(); result["color"] = ::facebook::react::toDynamic(color); result["backgroundColor"] = ::facebook::react::toDynamic(backgroundColor); return result; } #endif }; static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownTextMarkdownStyleBlockquoteAdmonitionsTipStruct &result) { auto map = (std::unordered_map)value; auto tmp_color = map.find("color"); if (tmp_color != map.end()) { fromRawValue(context, tmp_color->second, result.color); } auto tmp_backgroundColor = map.find("backgroundColor"); if (tmp_backgroundColor != map.end()) { fromRawValue(context, tmp_backgroundColor->second, result.backgroundColor); } } static inline std::string toString(const EnrichedMarkdownTextMarkdownStyleBlockquoteAdmonitionsTipStruct &value) { return "[Object EnrichedMarkdownTextMarkdownStyleBlockquoteAdmonitionsTipStruct]"; } #ifdef RN_SERIALIZABLE_STATE static inline folly::dynamic toDynamic(const EnrichedMarkdownTextMarkdownStyleBlockquoteAdmonitionsTipStruct &value) { return value.toDynamic(); } #endif struct EnrichedMarkdownTextMarkdownStyleBlockquoteAdmonitionsImportantStruct { SharedColor color{}; SharedColor backgroundColor{}; #ifdef RN_SERIALIZABLE_STATE bool operator==(const EnrichedMarkdownTextMarkdownStyleBlockquoteAdmonitionsImportantStruct&) const = default; folly::dynamic toDynamic() const { folly::dynamic result = folly::dynamic::object(); result["color"] = ::facebook::react::toDynamic(color); result["backgroundColor"] = ::facebook::react::toDynamic(backgroundColor); return result; } #endif }; static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownTextMarkdownStyleBlockquoteAdmonitionsImportantStruct &result) { auto map = (std::unordered_map)value; auto tmp_color = map.find("color"); if (tmp_color != map.end()) { fromRawValue(context, tmp_color->second, result.color); } auto tmp_backgroundColor = map.find("backgroundColor"); if (tmp_backgroundColor != map.end()) { fromRawValue(context, tmp_backgroundColor->second, result.backgroundColor); } } static inline std::string toString(const EnrichedMarkdownTextMarkdownStyleBlockquoteAdmonitionsImportantStruct &value) { return "[Object EnrichedMarkdownTextMarkdownStyleBlockquoteAdmonitionsImportantStruct]"; } #ifdef RN_SERIALIZABLE_STATE static inline folly::dynamic toDynamic(const EnrichedMarkdownTextMarkdownStyleBlockquoteAdmonitionsImportantStruct &value) { return value.toDynamic(); } #endif struct EnrichedMarkdownTextMarkdownStyleBlockquoteAdmonitionsWarningStruct { SharedColor color{}; SharedColor backgroundColor{}; #ifdef RN_SERIALIZABLE_STATE bool operator==(const EnrichedMarkdownTextMarkdownStyleBlockquoteAdmonitionsWarningStruct&) const = default; folly::dynamic toDynamic() const { folly::dynamic result = folly::dynamic::object(); result["color"] = ::facebook::react::toDynamic(color); result["backgroundColor"] = ::facebook::react::toDynamic(backgroundColor); return result; } #endif }; static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownTextMarkdownStyleBlockquoteAdmonitionsWarningStruct &result) { auto map = (std::unordered_map)value; auto tmp_color = map.find("color"); if (tmp_color != map.end()) { fromRawValue(context, tmp_color->second, result.color); } auto tmp_backgroundColor = map.find("backgroundColor"); if (tmp_backgroundColor != map.end()) { fromRawValue(context, tmp_backgroundColor->second, result.backgroundColor); } } static inline std::string toString(const EnrichedMarkdownTextMarkdownStyleBlockquoteAdmonitionsWarningStruct &value) { return "[Object EnrichedMarkdownTextMarkdownStyleBlockquoteAdmonitionsWarningStruct]"; } #ifdef RN_SERIALIZABLE_STATE static inline folly::dynamic toDynamic(const EnrichedMarkdownTextMarkdownStyleBlockquoteAdmonitionsWarningStruct &value) { return value.toDynamic(); } #endif struct EnrichedMarkdownTextMarkdownStyleBlockquoteAdmonitionsCautionStruct { SharedColor color{}; SharedColor backgroundColor{}; #ifdef RN_SERIALIZABLE_STATE bool operator==(const EnrichedMarkdownTextMarkdownStyleBlockquoteAdmonitionsCautionStruct&) const = default; folly::dynamic toDynamic() const { folly::dynamic result = folly::dynamic::object(); result["color"] = ::facebook::react::toDynamic(color); result["backgroundColor"] = ::facebook::react::toDynamic(backgroundColor); return result; } #endif }; static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownTextMarkdownStyleBlockquoteAdmonitionsCautionStruct &result) { auto map = (std::unordered_map)value; auto tmp_color = map.find("color"); if (tmp_color != map.end()) { fromRawValue(context, tmp_color->second, result.color); } auto tmp_backgroundColor = map.find("backgroundColor"); if (tmp_backgroundColor != map.end()) { fromRawValue(context, tmp_backgroundColor->second, result.backgroundColor); } } static inline std::string toString(const EnrichedMarkdownTextMarkdownStyleBlockquoteAdmonitionsCautionStruct &value) { return "[Object EnrichedMarkdownTextMarkdownStyleBlockquoteAdmonitionsCautionStruct]"; } #ifdef RN_SERIALIZABLE_STATE static inline folly::dynamic toDynamic(const EnrichedMarkdownTextMarkdownStyleBlockquoteAdmonitionsCautionStruct &value) { return value.toDynamic(); } #endif struct EnrichedMarkdownTextMarkdownStyleBlockquoteAdmonitionsStruct { EnrichedMarkdownTextMarkdownStyleBlockquoteAdmonitionsNoteStruct note{}; EnrichedMarkdownTextMarkdownStyleBlockquoteAdmonitionsTipStruct tip{}; EnrichedMarkdownTextMarkdownStyleBlockquoteAdmonitionsImportantStruct important{}; EnrichedMarkdownTextMarkdownStyleBlockquoteAdmonitionsWarningStruct warning{}; EnrichedMarkdownTextMarkdownStyleBlockquoteAdmonitionsCautionStruct caution{}; #ifdef RN_SERIALIZABLE_STATE bool operator==(const EnrichedMarkdownTextMarkdownStyleBlockquoteAdmonitionsStruct&) const = default; folly::dynamic toDynamic() const { folly::dynamic result = folly::dynamic::object(); result["note"] = ::facebook::react::toDynamic(note); result["tip"] = ::facebook::react::toDynamic(tip); result["important"] = ::facebook::react::toDynamic(important); result["warning"] = ::facebook::react::toDynamic(warning); result["caution"] = ::facebook::react::toDynamic(caution); return result; } #endif }; static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownTextMarkdownStyleBlockquoteAdmonitionsStruct &result) { auto map = (std::unordered_map)value; auto tmp_note = map.find("note"); if (tmp_note != map.end()) { fromRawValue(context, tmp_note->second, result.note); } auto tmp_tip = map.find("tip"); if (tmp_tip != map.end()) { fromRawValue(context, tmp_tip->second, result.tip); } auto tmp_important = map.find("important"); if (tmp_important != map.end()) { fromRawValue(context, tmp_important->second, result.important); } auto tmp_warning = map.find("warning"); if (tmp_warning != map.end()) { fromRawValue(context, tmp_warning->second, result.warning); } auto tmp_caution = map.find("caution"); if (tmp_caution != map.end()) { fromRawValue(context, tmp_caution->second, result.caution); } } static inline std::string toString(const EnrichedMarkdownTextMarkdownStyleBlockquoteAdmonitionsStruct &value) { return "[Object EnrichedMarkdownTextMarkdownStyleBlockquoteAdmonitionsStruct]"; } #ifdef RN_SERIALIZABLE_STATE static inline folly::dynamic toDynamic(const EnrichedMarkdownTextMarkdownStyleBlockquoteAdmonitionsStruct &value) { return value.toDynamic(); } #endif struct EnrichedMarkdownTextMarkdownStyleBlockquoteStruct { Float fontSize{0.0}; std::string fontFamily{}; std::string fontWeight{}; SharedColor color{}; Float marginTop{0.0}; Float marginBottom{0.0}; Float lineHeight{0.0}; SharedColor borderColor{}; Float borderWidth{0.0}; Float gapWidth{0.0}; SharedColor backgroundColor{}; Float borderRadius{0.0}; Float padding{0.0}; EnrichedMarkdownTextMarkdownStyleBlockquoteAdmonitionsStruct admonitions{}; #ifdef RN_SERIALIZABLE_STATE bool operator==(const EnrichedMarkdownTextMarkdownStyleBlockquoteStruct&) const = default; folly::dynamic toDynamic() const { folly::dynamic result = folly::dynamic::object(); result["fontSize"] = fontSize; result["fontFamily"] = fontFamily; result["fontWeight"] = fontWeight; result["color"] = ::facebook::react::toDynamic(color); result["marginTop"] = marginTop; result["marginBottom"] = marginBottom; result["lineHeight"] = lineHeight; result["borderColor"] = ::facebook::react::toDynamic(borderColor); result["borderWidth"] = borderWidth; result["gapWidth"] = gapWidth; result["backgroundColor"] = ::facebook::react::toDynamic(backgroundColor); result["borderRadius"] = borderRadius; result["padding"] = padding; result["admonitions"] = ::facebook::react::toDynamic(admonitions); return result; } #endif }; static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownTextMarkdownStyleBlockquoteStruct &result) { auto map = (std::unordered_map)value; auto tmp_fontSize = map.find("fontSize"); if (tmp_fontSize != map.end()) { fromRawValue(context, tmp_fontSize->second, result.fontSize); } auto tmp_fontFamily = map.find("fontFamily"); if (tmp_fontFamily != map.end()) { fromRawValue(context, tmp_fontFamily->second, result.fontFamily); } auto tmp_fontWeight = map.find("fontWeight"); if (tmp_fontWeight != map.end()) { fromRawValue(context, tmp_fontWeight->second, result.fontWeight); } auto tmp_color = map.find("color"); if (tmp_color != map.end()) { fromRawValue(context, tmp_color->second, result.color); } auto tmp_marginTop = map.find("marginTop"); if (tmp_marginTop != map.end()) { fromRawValue(context, tmp_marginTop->second, result.marginTop); } auto tmp_marginBottom = map.find("marginBottom"); if (tmp_marginBottom != map.end()) { fromRawValue(context, tmp_marginBottom->second, result.marginBottom); } auto tmp_lineHeight = map.find("lineHeight"); if (tmp_lineHeight != map.end()) { fromRawValue(context, tmp_lineHeight->second, result.lineHeight); } auto tmp_borderColor = map.find("borderColor"); if (tmp_borderColor != map.end()) { fromRawValue(context, tmp_borderColor->second, result.borderColor); } auto tmp_borderWidth = map.find("borderWidth"); if (tmp_borderWidth != map.end()) { fromRawValue(context, tmp_borderWidth->second, result.borderWidth); } auto tmp_gapWidth = map.find("gapWidth"); if (tmp_gapWidth != map.end()) { fromRawValue(context, tmp_gapWidth->second, result.gapWidth); } auto tmp_backgroundColor = map.find("backgroundColor"); if (tmp_backgroundColor != map.end()) { fromRawValue(context, tmp_backgroundColor->second, result.backgroundColor); } auto tmp_borderRadius = map.find("borderRadius"); if (tmp_borderRadius != map.end()) { fromRawValue(context, tmp_borderRadius->second, result.borderRadius); } auto tmp_padding = map.find("padding"); if (tmp_padding != map.end()) { fromRawValue(context, tmp_padding->second, result.padding); } auto tmp_admonitions = map.find("admonitions"); if (tmp_admonitions != map.end()) { fromRawValue(context, tmp_admonitions->second, result.admonitions); } } static inline std::string toString(const EnrichedMarkdownTextMarkdownStyleBlockquoteStruct &value) { return "[Object EnrichedMarkdownTextMarkdownStyleBlockquoteStruct]"; } #ifdef RN_SERIALIZABLE_STATE static inline folly::dynamic toDynamic(const EnrichedMarkdownTextMarkdownStyleBlockquoteStruct &value) { return value.toDynamic(); } #endif struct EnrichedMarkdownTextMarkdownStyleListStruct { Float fontSize{0.0}; std::string fontFamily{}; std::string fontWeight{}; SharedColor color{}; Float marginTop{0.0}; Float marginBottom{0.0}; Float lineHeight{0.0}; SharedColor bulletColor{}; Float bulletSize{0.0}; Float markerMinWidth{0.0}; SharedColor markerColor{}; std::string markerFontWeight{}; Float gapWidth{0.0}; Float marginLeft{0.0}; Float itemSpacing{0.0}; #ifdef RN_SERIALIZABLE_STATE bool operator==(const EnrichedMarkdownTextMarkdownStyleListStruct&) const = default; folly::dynamic toDynamic() const { folly::dynamic result = folly::dynamic::object(); result["fontSize"] = fontSize; result["fontFamily"] = fontFamily; result["fontWeight"] = fontWeight; result["color"] = ::facebook::react::toDynamic(color); result["marginTop"] = marginTop; result["marginBottom"] = marginBottom; result["lineHeight"] = lineHeight; result["bulletColor"] = ::facebook::react::toDynamic(bulletColor); result["bulletSize"] = bulletSize; result["markerMinWidth"] = markerMinWidth; result["markerColor"] = ::facebook::react::toDynamic(markerColor); result["markerFontWeight"] = markerFontWeight; result["gapWidth"] = gapWidth; result["marginLeft"] = marginLeft; result["itemSpacing"] = itemSpacing; return result; } #endif }; static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownTextMarkdownStyleListStruct &result) { auto map = (std::unordered_map)value; auto tmp_fontSize = map.find("fontSize"); if (tmp_fontSize != map.end()) { fromRawValue(context, tmp_fontSize->second, result.fontSize); } auto tmp_fontFamily = map.find("fontFamily"); if (tmp_fontFamily != map.end()) { fromRawValue(context, tmp_fontFamily->second, result.fontFamily); } auto tmp_fontWeight = map.find("fontWeight"); if (tmp_fontWeight != map.end()) { fromRawValue(context, tmp_fontWeight->second, result.fontWeight); } auto tmp_color = map.find("color"); if (tmp_color != map.end()) { fromRawValue(context, tmp_color->second, result.color); } auto tmp_marginTop = map.find("marginTop"); if (tmp_marginTop != map.end()) { fromRawValue(context, tmp_marginTop->second, result.marginTop); } auto tmp_marginBottom = map.find("marginBottom"); if (tmp_marginBottom != map.end()) { fromRawValue(context, tmp_marginBottom->second, result.marginBottom); } auto tmp_lineHeight = map.find("lineHeight"); if (tmp_lineHeight != map.end()) { fromRawValue(context, tmp_lineHeight->second, result.lineHeight); } auto tmp_bulletColor = map.find("bulletColor"); if (tmp_bulletColor != map.end()) { fromRawValue(context, tmp_bulletColor->second, result.bulletColor); } auto tmp_bulletSize = map.find("bulletSize"); if (tmp_bulletSize != map.end()) { fromRawValue(context, tmp_bulletSize->second, result.bulletSize); } auto tmp_markerMinWidth = map.find("markerMinWidth"); if (tmp_markerMinWidth != map.end()) { fromRawValue(context, tmp_markerMinWidth->second, result.markerMinWidth); } auto tmp_markerColor = map.find("markerColor"); if (tmp_markerColor != map.end()) { fromRawValue(context, tmp_markerColor->second, result.markerColor); } auto tmp_markerFontWeight = map.find("markerFontWeight"); if (tmp_markerFontWeight != map.end()) { fromRawValue(context, tmp_markerFontWeight->second, result.markerFontWeight); } auto tmp_gapWidth = map.find("gapWidth"); if (tmp_gapWidth != map.end()) { fromRawValue(context, tmp_gapWidth->second, result.gapWidth); } auto tmp_marginLeft = map.find("marginLeft"); if (tmp_marginLeft != map.end()) { fromRawValue(context, tmp_marginLeft->second, result.marginLeft); } auto tmp_itemSpacing = map.find("itemSpacing"); if (tmp_itemSpacing != map.end()) { fromRawValue(context, tmp_itemSpacing->second, result.itemSpacing); } } static inline std::string toString(const EnrichedMarkdownTextMarkdownStyleListStruct &value) { return "[Object EnrichedMarkdownTextMarkdownStyleListStruct]"; } #ifdef RN_SERIALIZABLE_STATE static inline folly::dynamic toDynamic(const EnrichedMarkdownTextMarkdownStyleListStruct &value) { return value.toDynamic(); } #endif struct EnrichedMarkdownTextMarkdownStyleCodeBlockSyntaxColorsStruct { SharedColor keyword{}; SharedColor operatorColor{}; SharedColor punctuation{}; SharedColor string{}; SharedColor number{}; SharedColor constant{}; SharedColor comment{}; SharedColor function{}; SharedColor type{}; SharedColor variable{}; SharedColor property{}; SharedColor tag{}; SharedColor attribute{}; SharedColor embedded{}; #ifdef RN_SERIALIZABLE_STATE bool operator==(const EnrichedMarkdownTextMarkdownStyleCodeBlockSyntaxColorsStruct&) const = default; folly::dynamic toDynamic() const { folly::dynamic result = folly::dynamic::object(); result["keyword"] = ::facebook::react::toDynamic(keyword); result["operatorColor"] = ::facebook::react::toDynamic(operatorColor); result["punctuation"] = ::facebook::react::toDynamic(punctuation); result["string"] = ::facebook::react::toDynamic(string); result["number"] = ::facebook::react::toDynamic(number); result["constant"] = ::facebook::react::toDynamic(constant); result["comment"] = ::facebook::react::toDynamic(comment); result["function"] = ::facebook::react::toDynamic(function); result["type"] = ::facebook::react::toDynamic(type); result["variable"] = ::facebook::react::toDynamic(variable); result["property"] = ::facebook::react::toDynamic(property); result["tag"] = ::facebook::react::toDynamic(tag); result["attribute"] = ::facebook::react::toDynamic(attribute); result["embedded"] = ::facebook::react::toDynamic(embedded); return result; } #endif }; static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownTextMarkdownStyleCodeBlockSyntaxColorsStruct &result) { auto map = (std::unordered_map)value; auto tmp_keyword = map.find("keyword"); if (tmp_keyword != map.end()) { fromRawValue(context, tmp_keyword->second, result.keyword); } auto tmp_operatorColor = map.find("operatorColor"); if (tmp_operatorColor != map.end()) { fromRawValue(context, tmp_operatorColor->second, result.operatorColor); } auto tmp_punctuation = map.find("punctuation"); if (tmp_punctuation != map.end()) { fromRawValue(context, tmp_punctuation->second, result.punctuation); } auto tmp_string = map.find("string"); if (tmp_string != map.end()) { fromRawValue(context, tmp_string->second, result.string); } auto tmp_number = map.find("number"); if (tmp_number != map.end()) { fromRawValue(context, tmp_number->second, result.number); } auto tmp_constant = map.find("constant"); if (tmp_constant != map.end()) { fromRawValue(context, tmp_constant->second, result.constant); } auto tmp_comment = map.find("comment"); if (tmp_comment != map.end()) { fromRawValue(context, tmp_comment->second, result.comment); } auto tmp_function = map.find("function"); if (tmp_function != map.end()) { fromRawValue(context, tmp_function->second, result.function); } auto tmp_type = map.find("type"); if (tmp_type != map.end()) { fromRawValue(context, tmp_type->second, result.type); } auto tmp_variable = map.find("variable"); if (tmp_variable != map.end()) { fromRawValue(context, tmp_variable->second, result.variable); } auto tmp_property = map.find("property"); if (tmp_property != map.end()) { fromRawValue(context, tmp_property->second, result.property); } auto tmp_tag = map.find("tag"); if (tmp_tag != map.end()) { fromRawValue(context, tmp_tag->second, result.tag); } auto tmp_attribute = map.find("attribute"); if (tmp_attribute != map.end()) { fromRawValue(context, tmp_attribute->second, result.attribute); } auto tmp_embedded = map.find("embedded"); if (tmp_embedded != map.end()) { fromRawValue(context, tmp_embedded->second, result.embedded); } } static inline std::string toString(const EnrichedMarkdownTextMarkdownStyleCodeBlockSyntaxColorsStruct &value) { return "[Object EnrichedMarkdownTextMarkdownStyleCodeBlockSyntaxColorsStruct]"; } #ifdef RN_SERIALIZABLE_STATE static inline folly::dynamic toDynamic(const EnrichedMarkdownTextMarkdownStyleCodeBlockSyntaxColorsStruct &value) { return value.toDynamic(); } #endif struct EnrichedMarkdownTextMarkdownStyleCodeBlockStruct { Float fontSize{0.0}; std::string fontFamily{}; std::string fontWeight{}; SharedColor color{}; Float marginTop{0.0}; Float marginBottom{0.0}; Float lineHeight{0.0}; SharedColor backgroundColor{}; SharedColor borderColor{}; Float borderRadius{0.0}; Float borderWidth{0.0}; Float padding{0.0}; EnrichedMarkdownTextMarkdownStyleCodeBlockSyntaxColorsStruct syntaxColors{}; #ifdef RN_SERIALIZABLE_STATE bool operator==(const EnrichedMarkdownTextMarkdownStyleCodeBlockStruct&) const = default; folly::dynamic toDynamic() const { folly::dynamic result = folly::dynamic::object(); result["fontSize"] = fontSize; result["fontFamily"] = fontFamily; result["fontWeight"] = fontWeight; result["color"] = ::facebook::react::toDynamic(color); result["marginTop"] = marginTop; result["marginBottom"] = marginBottom; result["lineHeight"] = lineHeight; result["backgroundColor"] = ::facebook::react::toDynamic(backgroundColor); result["borderColor"] = ::facebook::react::toDynamic(borderColor); result["borderRadius"] = borderRadius; result["borderWidth"] = borderWidth; result["padding"] = padding; result["syntaxColors"] = ::facebook::react::toDynamic(syntaxColors); return result; } #endif }; static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownTextMarkdownStyleCodeBlockStruct &result) { auto map = (std::unordered_map)value; auto tmp_fontSize = map.find("fontSize"); if (tmp_fontSize != map.end()) { fromRawValue(context, tmp_fontSize->second, result.fontSize); } auto tmp_fontFamily = map.find("fontFamily"); if (tmp_fontFamily != map.end()) { fromRawValue(context, tmp_fontFamily->second, result.fontFamily); } auto tmp_fontWeight = map.find("fontWeight"); if (tmp_fontWeight != map.end()) { fromRawValue(context, tmp_fontWeight->second, result.fontWeight); } auto tmp_color = map.find("color"); if (tmp_color != map.end()) { fromRawValue(context, tmp_color->second, result.color); } auto tmp_marginTop = map.find("marginTop"); if (tmp_marginTop != map.end()) { fromRawValue(context, tmp_marginTop->second, result.marginTop); } auto tmp_marginBottom = map.find("marginBottom"); if (tmp_marginBottom != map.end()) { fromRawValue(context, tmp_marginBottom->second, result.marginBottom); } auto tmp_lineHeight = map.find("lineHeight"); if (tmp_lineHeight != map.end()) { fromRawValue(context, tmp_lineHeight->second, result.lineHeight); } auto tmp_backgroundColor = map.find("backgroundColor"); if (tmp_backgroundColor != map.end()) { fromRawValue(context, tmp_backgroundColor->second, result.backgroundColor); } auto tmp_borderColor = map.find("borderColor"); if (tmp_borderColor != map.end()) { fromRawValue(context, tmp_borderColor->second, result.borderColor); } auto tmp_borderRadius = map.find("borderRadius"); if (tmp_borderRadius != map.end()) { fromRawValue(context, tmp_borderRadius->second, result.borderRadius); } auto tmp_borderWidth = map.find("borderWidth"); if (tmp_borderWidth != map.end()) { fromRawValue(context, tmp_borderWidth->second, result.borderWidth); } auto tmp_padding = map.find("padding"); if (tmp_padding != map.end()) { fromRawValue(context, tmp_padding->second, result.padding); } auto tmp_syntaxColors = map.find("syntaxColors"); if (tmp_syntaxColors != map.end()) { fromRawValue(context, tmp_syntaxColors->second, result.syntaxColors); } } static inline std::string toString(const EnrichedMarkdownTextMarkdownStyleCodeBlockStruct &value) { return "[Object EnrichedMarkdownTextMarkdownStyleCodeBlockStruct]"; } #ifdef RN_SERIALIZABLE_STATE static inline folly::dynamic toDynamic(const EnrichedMarkdownTextMarkdownStyleCodeBlockStruct &value) { return value.toDynamic(); } #endif struct EnrichedMarkdownTextMarkdownStyleLinkStruct { std::string fontFamily{}; SharedColor color{}; bool underline{false}; SharedColor backgroundColor{}; #ifdef RN_SERIALIZABLE_STATE bool operator==(const EnrichedMarkdownTextMarkdownStyleLinkStruct&) const = default; folly::dynamic toDynamic() const { folly::dynamic result = folly::dynamic::object(); result["fontFamily"] = fontFamily; result["color"] = ::facebook::react::toDynamic(color); result["underline"] = underline; result["backgroundColor"] = ::facebook::react::toDynamic(backgroundColor); return result; } #endif }; static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownTextMarkdownStyleLinkStruct &result) { auto map = (std::unordered_map)value; auto tmp_fontFamily = map.find("fontFamily"); if (tmp_fontFamily != map.end()) { fromRawValue(context, tmp_fontFamily->second, result.fontFamily); } auto tmp_color = map.find("color"); if (tmp_color != map.end()) { fromRawValue(context, tmp_color->second, result.color); } auto tmp_underline = map.find("underline"); if (tmp_underline != map.end()) { fromRawValue(context, tmp_underline->second, result.underline); } auto tmp_backgroundColor = map.find("backgroundColor"); if (tmp_backgroundColor != map.end()) { fromRawValue(context, tmp_backgroundColor->second, result.backgroundColor); } } static inline std::string toString(const EnrichedMarkdownTextMarkdownStyleLinkStruct &value) { return "[Object EnrichedMarkdownTextMarkdownStyleLinkStruct]"; } #ifdef RN_SERIALIZABLE_STATE static inline folly::dynamic toDynamic(const EnrichedMarkdownTextMarkdownStyleLinkStruct &value) { return value.toDynamic(); } #endif struct EnrichedMarkdownTextMarkdownStyleLinkVariantsPillStruct { bool enabled{false}; std::string label{}; std::string iconUri{}; SharedColor iconTintColor{}; Float borderRadius{0.0}; Float paddingHorizontal{0.0}; Float paddingVertical{0.0}; Float lineHeight{0.0}; Float borderWidth{0.0}; SharedColor borderColor{}; Float maxWidth{0.0}; #ifdef RN_SERIALIZABLE_STATE bool operator==(const EnrichedMarkdownTextMarkdownStyleLinkVariantsPillStruct&) const = default; folly::dynamic toDynamic() const { folly::dynamic result = folly::dynamic::object(); result["enabled"] = enabled; result["label"] = label; result["iconUri"] = iconUri; result["iconTintColor"] = ::facebook::react::toDynamic(iconTintColor); result["borderRadius"] = borderRadius; result["paddingHorizontal"] = paddingHorizontal; result["paddingVertical"] = paddingVertical; result["lineHeight"] = lineHeight; result["borderWidth"] = borderWidth; result["borderColor"] = ::facebook::react::toDynamic(borderColor); result["maxWidth"] = maxWidth; return result; } #endif }; static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownTextMarkdownStyleLinkVariantsPillStruct &result) { auto map = (std::unordered_map)value; auto tmp_enabled = map.find("enabled"); if (tmp_enabled != map.end()) { fromRawValue(context, tmp_enabled->second, result.enabled); } auto tmp_label = map.find("label"); if (tmp_label != map.end()) { fromRawValue(context, tmp_label->second, result.label); } auto tmp_iconUri = map.find("iconUri"); if (tmp_iconUri != map.end()) { fromRawValue(context, tmp_iconUri->second, result.iconUri); } auto tmp_iconTintColor = map.find("iconTintColor"); if (tmp_iconTintColor != map.end()) { fromRawValue(context, tmp_iconTintColor->second, result.iconTintColor); } auto tmp_borderRadius = map.find("borderRadius"); if (tmp_borderRadius != map.end()) { fromRawValue(context, tmp_borderRadius->second, result.borderRadius); } auto tmp_paddingHorizontal = map.find("paddingHorizontal"); if (tmp_paddingHorizontal != map.end()) { fromRawValue(context, tmp_paddingHorizontal->second, result.paddingHorizontal); } auto tmp_paddingVertical = map.find("paddingVertical"); if (tmp_paddingVertical != map.end()) { fromRawValue(context, tmp_paddingVertical->second, result.paddingVertical); } auto tmp_lineHeight = map.find("lineHeight"); if (tmp_lineHeight != map.end()) { fromRawValue(context, tmp_lineHeight->second, result.lineHeight); } auto tmp_borderWidth = map.find("borderWidth"); if (tmp_borderWidth != map.end()) { fromRawValue(context, tmp_borderWidth->second, result.borderWidth); } auto tmp_borderColor = map.find("borderColor"); if (tmp_borderColor != map.end()) { fromRawValue(context, tmp_borderColor->second, result.borderColor); } auto tmp_maxWidth = map.find("maxWidth"); if (tmp_maxWidth != map.end()) { fromRawValue(context, tmp_maxWidth->second, result.maxWidth); } } static inline std::string toString(const EnrichedMarkdownTextMarkdownStyleLinkVariantsPillStruct &value) { return "[Object EnrichedMarkdownTextMarkdownStyleLinkVariantsPillStruct]"; } #ifdef RN_SERIALIZABLE_STATE static inline folly::dynamic toDynamic(const EnrichedMarkdownTextMarkdownStyleLinkVariantsPillStruct &value) { return value.toDynamic(); } #endif struct EnrichedMarkdownTextMarkdownStyleLinkVariantsStruct { std::string pattern{}; SharedColor color{}; bool underline{false}; SharedColor backgroundColor{}; std::string fontFamily{}; EnrichedMarkdownTextMarkdownStyleLinkVariantsPillStruct pill{}; #ifdef RN_SERIALIZABLE_STATE bool operator==(const EnrichedMarkdownTextMarkdownStyleLinkVariantsStruct&) const = default; folly::dynamic toDynamic() const { folly::dynamic result = folly::dynamic::object(); result["pattern"] = pattern; result["color"] = ::facebook::react::toDynamic(color); result["underline"] = underline; result["backgroundColor"] = ::facebook::react::toDynamic(backgroundColor); result["fontFamily"] = fontFamily; result["pill"] = ::facebook::react::toDynamic(pill); return result; } #endif }; static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownTextMarkdownStyleLinkVariantsStruct &result) { auto map = (std::unordered_map)value; auto tmp_pattern = map.find("pattern"); if (tmp_pattern != map.end()) { fromRawValue(context, tmp_pattern->second, result.pattern); } auto tmp_color = map.find("color"); if (tmp_color != map.end()) { fromRawValue(context, tmp_color->second, result.color); } auto tmp_underline = map.find("underline"); if (tmp_underline != map.end()) { fromRawValue(context, tmp_underline->second, result.underline); } auto tmp_backgroundColor = map.find("backgroundColor"); if (tmp_backgroundColor != map.end()) { fromRawValue(context, tmp_backgroundColor->second, result.backgroundColor); } auto tmp_fontFamily = map.find("fontFamily"); if (tmp_fontFamily != map.end()) { fromRawValue(context, tmp_fontFamily->second, result.fontFamily); } auto tmp_pill = map.find("pill"); if (tmp_pill != map.end()) { fromRawValue(context, tmp_pill->second, result.pill); } } static inline std::string toString(const EnrichedMarkdownTextMarkdownStyleLinkVariantsStruct &value) { return "[Object EnrichedMarkdownTextMarkdownStyleLinkVariantsStruct]"; } #ifdef RN_SERIALIZABLE_STATE static inline folly::dynamic toDynamic(const EnrichedMarkdownTextMarkdownStyleLinkVariantsStruct &value) { return value.toDynamic(); } #endif static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, std::vector &result) { auto items = (std::vector)value; for (const auto &item : items) { EnrichedMarkdownTextMarkdownStyleLinkVariantsStruct newItem; fromRawValue(context, item, newItem); result.emplace_back(newItem); } } struct EnrichedMarkdownTextMarkdownStyleStrongStruct { std::string fontFamily{}; std::string fontWeight{}; SharedColor color{}; #ifdef RN_SERIALIZABLE_STATE bool operator==(const EnrichedMarkdownTextMarkdownStyleStrongStruct&) const = default; folly::dynamic toDynamic() const { folly::dynamic result = folly::dynamic::object(); result["fontFamily"] = fontFamily; result["fontWeight"] = fontWeight; result["color"] = ::facebook::react::toDynamic(color); return result; } #endif }; static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownTextMarkdownStyleStrongStruct &result) { auto map = (std::unordered_map)value; auto tmp_fontFamily = map.find("fontFamily"); if (tmp_fontFamily != map.end()) { fromRawValue(context, tmp_fontFamily->second, result.fontFamily); } auto tmp_fontWeight = map.find("fontWeight"); if (tmp_fontWeight != map.end()) { fromRawValue(context, tmp_fontWeight->second, result.fontWeight); } auto tmp_color = map.find("color"); if (tmp_color != map.end()) { fromRawValue(context, tmp_color->second, result.color); } } static inline std::string toString(const EnrichedMarkdownTextMarkdownStyleStrongStruct &value) { return "[Object EnrichedMarkdownTextMarkdownStyleStrongStruct]"; } #ifdef RN_SERIALIZABLE_STATE static inline folly::dynamic toDynamic(const EnrichedMarkdownTextMarkdownStyleStrongStruct &value) { return value.toDynamic(); } #endif struct EnrichedMarkdownTextMarkdownStyleEmStruct { std::string fontFamily{}; std::string fontStyle{}; SharedColor color{}; #ifdef RN_SERIALIZABLE_STATE bool operator==(const EnrichedMarkdownTextMarkdownStyleEmStruct&) const = default; folly::dynamic toDynamic() const { folly::dynamic result = folly::dynamic::object(); result["fontFamily"] = fontFamily; result["fontStyle"] = fontStyle; result["color"] = ::facebook::react::toDynamic(color); return result; } #endif }; static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownTextMarkdownStyleEmStruct &result) { auto map = (std::unordered_map)value; auto tmp_fontFamily = map.find("fontFamily"); if (tmp_fontFamily != map.end()) { fromRawValue(context, tmp_fontFamily->second, result.fontFamily); } auto tmp_fontStyle = map.find("fontStyle"); if (tmp_fontStyle != map.end()) { fromRawValue(context, tmp_fontStyle->second, result.fontStyle); } auto tmp_color = map.find("color"); if (tmp_color != map.end()) { fromRawValue(context, tmp_color->second, result.color); } } static inline std::string toString(const EnrichedMarkdownTextMarkdownStyleEmStruct &value) { return "[Object EnrichedMarkdownTextMarkdownStyleEmStruct]"; } #ifdef RN_SERIALIZABLE_STATE static inline folly::dynamic toDynamic(const EnrichedMarkdownTextMarkdownStyleEmStruct &value) { return value.toDynamic(); } #endif struct EnrichedMarkdownTextMarkdownStyleStrikethroughStruct { SharedColor color{}; #ifdef RN_SERIALIZABLE_STATE bool operator==(const EnrichedMarkdownTextMarkdownStyleStrikethroughStruct&) const = default; folly::dynamic toDynamic() const { folly::dynamic result = folly::dynamic::object(); result["color"] = ::facebook::react::toDynamic(color); return result; } #endif }; static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownTextMarkdownStyleStrikethroughStruct &result) { auto map = (std::unordered_map)value; auto tmp_color = map.find("color"); if (tmp_color != map.end()) { fromRawValue(context, tmp_color->second, result.color); } } static inline std::string toString(const EnrichedMarkdownTextMarkdownStyleStrikethroughStruct &value) { return "[Object EnrichedMarkdownTextMarkdownStyleStrikethroughStruct]"; } #ifdef RN_SERIALIZABLE_STATE static inline folly::dynamic toDynamic(const EnrichedMarkdownTextMarkdownStyleStrikethroughStruct &value) { return value.toDynamic(); } #endif struct EnrichedMarkdownTextMarkdownStyleUnderlineStruct { SharedColor color{}; #ifdef RN_SERIALIZABLE_STATE bool operator==(const EnrichedMarkdownTextMarkdownStyleUnderlineStruct&) const = default; folly::dynamic toDynamic() const { folly::dynamic result = folly::dynamic::object(); result["color"] = ::facebook::react::toDynamic(color); return result; } #endif }; static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownTextMarkdownStyleUnderlineStruct &result) { auto map = (std::unordered_map)value; auto tmp_color = map.find("color"); if (tmp_color != map.end()) { fromRawValue(context, tmp_color->second, result.color); } } static inline std::string toString(const EnrichedMarkdownTextMarkdownStyleUnderlineStruct &value) { return "[Object EnrichedMarkdownTextMarkdownStyleUnderlineStruct]"; } #ifdef RN_SERIALIZABLE_STATE static inline folly::dynamic toDynamic(const EnrichedMarkdownTextMarkdownStyleUnderlineStruct &value) { return value.toDynamic(); } #endif struct EnrichedMarkdownTextMarkdownStyleCodeStruct { std::string fontFamily{}; Float fontSize{0.0}; Float fontScale{0.0}; SharedColor color{}; SharedColor backgroundColor{}; SharedColor borderColor{}; #ifdef RN_SERIALIZABLE_STATE bool operator==(const EnrichedMarkdownTextMarkdownStyleCodeStruct&) const = default; folly::dynamic toDynamic() const { folly::dynamic result = folly::dynamic::object(); result["fontFamily"] = fontFamily; result["fontSize"] = fontSize; result["fontScale"] = fontScale; result["color"] = ::facebook::react::toDynamic(color); result["backgroundColor"] = ::facebook::react::toDynamic(backgroundColor); result["borderColor"] = ::facebook::react::toDynamic(borderColor); return result; } #endif }; static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownTextMarkdownStyleCodeStruct &result) { auto map = (std::unordered_map)value; auto tmp_fontFamily = map.find("fontFamily"); if (tmp_fontFamily != map.end()) { fromRawValue(context, tmp_fontFamily->second, result.fontFamily); } auto tmp_fontSize = map.find("fontSize"); if (tmp_fontSize != map.end()) { fromRawValue(context, tmp_fontSize->second, result.fontSize); } auto tmp_fontScale = map.find("fontScale"); if (tmp_fontScale != map.end()) { fromRawValue(context, tmp_fontScale->second, result.fontScale); } auto tmp_color = map.find("color"); if (tmp_color != map.end()) { fromRawValue(context, tmp_color->second, result.color); } auto tmp_backgroundColor = map.find("backgroundColor"); if (tmp_backgroundColor != map.end()) { fromRawValue(context, tmp_backgroundColor->second, result.backgroundColor); } auto tmp_borderColor = map.find("borderColor"); if (tmp_borderColor != map.end()) { fromRawValue(context, tmp_borderColor->second, result.borderColor); } } static inline std::string toString(const EnrichedMarkdownTextMarkdownStyleCodeStruct &value) { return "[Object EnrichedMarkdownTextMarkdownStyleCodeStruct]"; } #ifdef RN_SERIALIZABLE_STATE static inline folly::dynamic toDynamic(const EnrichedMarkdownTextMarkdownStyleCodeStruct &value) { return value.toDynamic(); } #endif struct EnrichedMarkdownTextMarkdownStyleImageStruct { Float height{0.0}; Float maxHeight{0.0}; Float aspectRatio{0.0}; std::string resizeMode{}; Float borderRadius{0.0}; Float marginTop{0.0}; Float marginBottom{0.0}; #ifdef RN_SERIALIZABLE_STATE bool operator==(const EnrichedMarkdownTextMarkdownStyleImageStruct&) const = default; folly::dynamic toDynamic() const { folly::dynamic result = folly::dynamic::object(); result["height"] = height; result["maxHeight"] = maxHeight; result["aspectRatio"] = aspectRatio; result["resizeMode"] = resizeMode; result["borderRadius"] = borderRadius; result["marginTop"] = marginTop; result["marginBottom"] = marginBottom; return result; } #endif }; static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownTextMarkdownStyleImageStruct &result) { auto map = (std::unordered_map)value; auto tmp_height = map.find("height"); if (tmp_height != map.end()) { fromRawValue(context, tmp_height->second, result.height); } auto tmp_maxHeight = map.find("maxHeight"); if (tmp_maxHeight != map.end()) { fromRawValue(context, tmp_maxHeight->second, result.maxHeight); } auto tmp_aspectRatio = map.find("aspectRatio"); if (tmp_aspectRatio != map.end()) { fromRawValue(context, tmp_aspectRatio->second, result.aspectRatio); } auto tmp_resizeMode = map.find("resizeMode"); if (tmp_resizeMode != map.end()) { fromRawValue(context, tmp_resizeMode->second, result.resizeMode); } auto tmp_borderRadius = map.find("borderRadius"); if (tmp_borderRadius != map.end()) { fromRawValue(context, tmp_borderRadius->second, result.borderRadius); } auto tmp_marginTop = map.find("marginTop"); if (tmp_marginTop != map.end()) { fromRawValue(context, tmp_marginTop->second, result.marginTop); } auto tmp_marginBottom = map.find("marginBottom"); if (tmp_marginBottom != map.end()) { fromRawValue(context, tmp_marginBottom->second, result.marginBottom); } } static inline std::string toString(const EnrichedMarkdownTextMarkdownStyleImageStruct &value) { return "[Object EnrichedMarkdownTextMarkdownStyleImageStruct]"; } #ifdef RN_SERIALIZABLE_STATE static inline folly::dynamic toDynamic(const EnrichedMarkdownTextMarkdownStyleImageStruct &value) { return value.toDynamic(); } #endif struct EnrichedMarkdownTextMarkdownStyleVideoStruct { Float marginTop{0.0}; Float marginBottom{0.0}; Float borderRadius{0.0}; Float aspectRatio{0.0}; SharedColor backgroundColor{}; #ifdef RN_SERIALIZABLE_STATE bool operator==(const EnrichedMarkdownTextMarkdownStyleVideoStruct&) const = default; folly::dynamic toDynamic() const { folly::dynamic result = folly::dynamic::object(); result["marginTop"] = marginTop; result["marginBottom"] = marginBottom; result["borderRadius"] = borderRadius; result["aspectRatio"] = aspectRatio; result["backgroundColor"] = ::facebook::react::toDynamic(backgroundColor); return result; } #endif }; static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownTextMarkdownStyleVideoStruct &result) { auto map = (std::unordered_map)value; auto tmp_marginTop = map.find("marginTop"); if (tmp_marginTop != map.end()) { fromRawValue(context, tmp_marginTop->second, result.marginTop); } auto tmp_marginBottom = map.find("marginBottom"); if (tmp_marginBottom != map.end()) { fromRawValue(context, tmp_marginBottom->second, result.marginBottom); } auto tmp_borderRadius = map.find("borderRadius"); if (tmp_borderRadius != map.end()) { fromRawValue(context, tmp_borderRadius->second, result.borderRadius); } auto tmp_aspectRatio = map.find("aspectRatio"); if (tmp_aspectRatio != map.end()) { fromRawValue(context, tmp_aspectRatio->second, result.aspectRatio); } auto tmp_backgroundColor = map.find("backgroundColor"); if (tmp_backgroundColor != map.end()) { fromRawValue(context, tmp_backgroundColor->second, result.backgroundColor); } } static inline std::string toString(const EnrichedMarkdownTextMarkdownStyleVideoStruct &value) { return "[Object EnrichedMarkdownTextMarkdownStyleVideoStruct]"; } #ifdef RN_SERIALIZABLE_STATE static inline folly::dynamic toDynamic(const EnrichedMarkdownTextMarkdownStyleVideoStruct &value) { return value.toDynamic(); } #endif struct EnrichedMarkdownTextMarkdownStyleInlineImageStruct { Float size{0.0}; #ifdef RN_SERIALIZABLE_STATE bool operator==(const EnrichedMarkdownTextMarkdownStyleInlineImageStruct&) const = default; folly::dynamic toDynamic() const { folly::dynamic result = folly::dynamic::object(); result["size"] = size; return result; } #endif }; static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownTextMarkdownStyleInlineImageStruct &result) { auto map = (std::unordered_map)value; auto tmp_size = map.find("size"); if (tmp_size != map.end()) { fromRawValue(context, tmp_size->second, result.size); } } static inline std::string toString(const EnrichedMarkdownTextMarkdownStyleInlineImageStruct &value) { return "[Object EnrichedMarkdownTextMarkdownStyleInlineImageStruct]"; } #ifdef RN_SERIALIZABLE_STATE static inline folly::dynamic toDynamic(const EnrichedMarkdownTextMarkdownStyleInlineImageStruct &value) { return value.toDynamic(); } #endif struct EnrichedMarkdownTextMarkdownStyleThematicBreakStruct { SharedColor color{}; Float height{0.0}; Float marginTop{0.0}; Float marginBottom{0.0}; #ifdef RN_SERIALIZABLE_STATE bool operator==(const EnrichedMarkdownTextMarkdownStyleThematicBreakStruct&) const = default; folly::dynamic toDynamic() const { folly::dynamic result = folly::dynamic::object(); result["color"] = ::facebook::react::toDynamic(color); result["height"] = height; result["marginTop"] = marginTop; result["marginBottom"] = marginBottom; return result; } #endif }; static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownTextMarkdownStyleThematicBreakStruct &result) { auto map = (std::unordered_map)value; auto tmp_color = map.find("color"); if (tmp_color != map.end()) { fromRawValue(context, tmp_color->second, result.color); } auto tmp_height = map.find("height"); if (tmp_height != map.end()) { fromRawValue(context, tmp_height->second, result.height); } auto tmp_marginTop = map.find("marginTop"); if (tmp_marginTop != map.end()) { fromRawValue(context, tmp_marginTop->second, result.marginTop); } auto tmp_marginBottom = map.find("marginBottom"); if (tmp_marginBottom != map.end()) { fromRawValue(context, tmp_marginBottom->second, result.marginBottom); } } static inline std::string toString(const EnrichedMarkdownTextMarkdownStyleThematicBreakStruct &value) { return "[Object EnrichedMarkdownTextMarkdownStyleThematicBreakStruct]"; } #ifdef RN_SERIALIZABLE_STATE static inline folly::dynamic toDynamic(const EnrichedMarkdownTextMarkdownStyleThematicBreakStruct &value) { return value.toDynamic(); } #endif struct EnrichedMarkdownTextMarkdownStyleTableStruct { Float fontSize{0.0}; std::string fontFamily{}; std::string fontWeight{}; SharedColor color{}; Float marginTop{0.0}; Float marginBottom{0.0}; Float lineHeight{0.0}; std::string headerFontFamily{}; SharedColor headerBackgroundColor{}; SharedColor headerTextColor{}; SharedColor rowEvenBackgroundColor{}; SharedColor rowOddBackgroundColor{}; SharedColor borderColor{}; Float borderWidth{0.0}; Float borderRadius{0.0}; Float cellPaddingHorizontal{0.0}; Float cellPaddingVertical{0.0}; Float horizontalOverflow{0.0}; std::string align{}; #ifdef RN_SERIALIZABLE_STATE bool operator==(const EnrichedMarkdownTextMarkdownStyleTableStruct&) const = default; folly::dynamic toDynamic() const { folly::dynamic result = folly::dynamic::object(); result["fontSize"] = fontSize; result["fontFamily"] = fontFamily; result["fontWeight"] = fontWeight; result["color"] = ::facebook::react::toDynamic(color); result["marginTop"] = marginTop; result["marginBottom"] = marginBottom; result["lineHeight"] = lineHeight; result["headerFontFamily"] = headerFontFamily; result["headerBackgroundColor"] = ::facebook::react::toDynamic(headerBackgroundColor); result["headerTextColor"] = ::facebook::react::toDynamic(headerTextColor); result["rowEvenBackgroundColor"] = ::facebook::react::toDynamic(rowEvenBackgroundColor); result["rowOddBackgroundColor"] = ::facebook::react::toDynamic(rowOddBackgroundColor); result["borderColor"] = ::facebook::react::toDynamic(borderColor); result["borderWidth"] = borderWidth; result["borderRadius"] = borderRadius; result["cellPaddingHorizontal"] = cellPaddingHorizontal; result["cellPaddingVertical"] = cellPaddingVertical; result["horizontalOverflow"] = horizontalOverflow; result["align"] = align; return result; } #endif }; static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownTextMarkdownStyleTableStruct &result) { auto map = (std::unordered_map)value; auto tmp_fontSize = map.find("fontSize"); if (tmp_fontSize != map.end()) { fromRawValue(context, tmp_fontSize->second, result.fontSize); } auto tmp_fontFamily = map.find("fontFamily"); if (tmp_fontFamily != map.end()) { fromRawValue(context, tmp_fontFamily->second, result.fontFamily); } auto tmp_fontWeight = map.find("fontWeight"); if (tmp_fontWeight != map.end()) { fromRawValue(context, tmp_fontWeight->second, result.fontWeight); } auto tmp_color = map.find("color"); if (tmp_color != map.end()) { fromRawValue(context, tmp_color->second, result.color); } auto tmp_marginTop = map.find("marginTop"); if (tmp_marginTop != map.end()) { fromRawValue(context, tmp_marginTop->second, result.marginTop); } auto tmp_marginBottom = map.find("marginBottom"); if (tmp_marginBottom != map.end()) { fromRawValue(context, tmp_marginBottom->second, result.marginBottom); } auto tmp_lineHeight = map.find("lineHeight"); if (tmp_lineHeight != map.end()) { fromRawValue(context, tmp_lineHeight->second, result.lineHeight); } auto tmp_headerFontFamily = map.find("headerFontFamily"); if (tmp_headerFontFamily != map.end()) { fromRawValue(context, tmp_headerFontFamily->second, result.headerFontFamily); } auto tmp_headerBackgroundColor = map.find("headerBackgroundColor"); if (tmp_headerBackgroundColor != map.end()) { fromRawValue(context, tmp_headerBackgroundColor->second, result.headerBackgroundColor); } auto tmp_headerTextColor = map.find("headerTextColor"); if (tmp_headerTextColor != map.end()) { fromRawValue(context, tmp_headerTextColor->second, result.headerTextColor); } auto tmp_rowEvenBackgroundColor = map.find("rowEvenBackgroundColor"); if (tmp_rowEvenBackgroundColor != map.end()) { fromRawValue(context, tmp_rowEvenBackgroundColor->second, result.rowEvenBackgroundColor); } auto tmp_rowOddBackgroundColor = map.find("rowOddBackgroundColor"); if (tmp_rowOddBackgroundColor != map.end()) { fromRawValue(context, tmp_rowOddBackgroundColor->second, result.rowOddBackgroundColor); } auto tmp_borderColor = map.find("borderColor"); if (tmp_borderColor != map.end()) { fromRawValue(context, tmp_borderColor->second, result.borderColor); } auto tmp_borderWidth = map.find("borderWidth"); if (tmp_borderWidth != map.end()) { fromRawValue(context, tmp_borderWidth->second, result.borderWidth); } auto tmp_borderRadius = map.find("borderRadius"); if (tmp_borderRadius != map.end()) { fromRawValue(context, tmp_borderRadius->second, result.borderRadius); } auto tmp_cellPaddingHorizontal = map.find("cellPaddingHorizontal"); if (tmp_cellPaddingHorizontal != map.end()) { fromRawValue(context, tmp_cellPaddingHorizontal->second, result.cellPaddingHorizontal); } auto tmp_cellPaddingVertical = map.find("cellPaddingVertical"); if (tmp_cellPaddingVertical != map.end()) { fromRawValue(context, tmp_cellPaddingVertical->second, result.cellPaddingVertical); } auto tmp_horizontalOverflow = map.find("horizontalOverflow"); if (tmp_horizontalOverflow != map.end()) { fromRawValue(context, tmp_horizontalOverflow->second, result.horizontalOverflow); } auto tmp_align = map.find("align"); if (tmp_align != map.end()) { fromRawValue(context, tmp_align->second, result.align); } } static inline std::string toString(const EnrichedMarkdownTextMarkdownStyleTableStruct &value) { return "[Object EnrichedMarkdownTextMarkdownStyleTableStruct]"; } #ifdef RN_SERIALIZABLE_STATE static inline folly::dynamic toDynamic(const EnrichedMarkdownTextMarkdownStyleTableStruct &value) { return value.toDynamic(); } #endif struct EnrichedMarkdownTextMarkdownStyleTaskListStruct { SharedColor checkedColor{}; SharedColor borderColor{}; Float checkboxSize{0.0}; Float checkboxBorderRadius{0.0}; SharedColor checkmarkColor{}; SharedColor checkedTextColor{}; bool checkedStrikethrough{false}; #ifdef RN_SERIALIZABLE_STATE bool operator==(const EnrichedMarkdownTextMarkdownStyleTaskListStruct&) const = default; folly::dynamic toDynamic() const { folly::dynamic result = folly::dynamic::object(); result["checkedColor"] = ::facebook::react::toDynamic(checkedColor); result["borderColor"] = ::facebook::react::toDynamic(borderColor); result["checkboxSize"] = checkboxSize; result["checkboxBorderRadius"] = checkboxBorderRadius; result["checkmarkColor"] = ::facebook::react::toDynamic(checkmarkColor); result["checkedTextColor"] = ::facebook::react::toDynamic(checkedTextColor); result["checkedStrikethrough"] = checkedStrikethrough; return result; } #endif }; static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownTextMarkdownStyleTaskListStruct &result) { auto map = (std::unordered_map)value; auto tmp_checkedColor = map.find("checkedColor"); if (tmp_checkedColor != map.end()) { fromRawValue(context, tmp_checkedColor->second, result.checkedColor); } auto tmp_borderColor = map.find("borderColor"); if (tmp_borderColor != map.end()) { fromRawValue(context, tmp_borderColor->second, result.borderColor); } auto tmp_checkboxSize = map.find("checkboxSize"); if (tmp_checkboxSize != map.end()) { fromRawValue(context, tmp_checkboxSize->second, result.checkboxSize); } auto tmp_checkboxBorderRadius = map.find("checkboxBorderRadius"); if (tmp_checkboxBorderRadius != map.end()) { fromRawValue(context, tmp_checkboxBorderRadius->second, result.checkboxBorderRadius); } auto tmp_checkmarkColor = map.find("checkmarkColor"); if (tmp_checkmarkColor != map.end()) { fromRawValue(context, tmp_checkmarkColor->second, result.checkmarkColor); } auto tmp_checkedTextColor = map.find("checkedTextColor"); if (tmp_checkedTextColor != map.end()) { fromRawValue(context, tmp_checkedTextColor->second, result.checkedTextColor); } auto tmp_checkedStrikethrough = map.find("checkedStrikethrough"); if (tmp_checkedStrikethrough != map.end()) { fromRawValue(context, tmp_checkedStrikethrough->second, result.checkedStrikethrough); } } static inline std::string toString(const EnrichedMarkdownTextMarkdownStyleTaskListStruct &value) { return "[Object EnrichedMarkdownTextMarkdownStyleTaskListStruct]"; } #ifdef RN_SERIALIZABLE_STATE static inline folly::dynamic toDynamic(const EnrichedMarkdownTextMarkdownStyleTaskListStruct &value) { return value.toDynamic(); } #endif struct EnrichedMarkdownTextMarkdownStyleMathStruct { Float fontSize{0.0}; SharedColor color{}; SharedColor backgroundColor{}; Float padding{0.0}; Float marginTop{0.0}; Float marginBottom{0.0}; std::string textAlign{}; #ifdef RN_SERIALIZABLE_STATE bool operator==(const EnrichedMarkdownTextMarkdownStyleMathStruct&) const = default; folly::dynamic toDynamic() const { folly::dynamic result = folly::dynamic::object(); result["fontSize"] = fontSize; result["color"] = ::facebook::react::toDynamic(color); result["backgroundColor"] = ::facebook::react::toDynamic(backgroundColor); result["padding"] = padding; result["marginTop"] = marginTop; result["marginBottom"] = marginBottom; result["textAlign"] = textAlign; return result; } #endif }; static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownTextMarkdownStyleMathStruct &result) { auto map = (std::unordered_map)value; auto tmp_fontSize = map.find("fontSize"); if (tmp_fontSize != map.end()) { fromRawValue(context, tmp_fontSize->second, result.fontSize); } auto tmp_color = map.find("color"); if (tmp_color != map.end()) { fromRawValue(context, tmp_color->second, result.color); } auto tmp_backgroundColor = map.find("backgroundColor"); if (tmp_backgroundColor != map.end()) { fromRawValue(context, tmp_backgroundColor->second, result.backgroundColor); } auto tmp_padding = map.find("padding"); if (tmp_padding != map.end()) { fromRawValue(context, tmp_padding->second, result.padding); } auto tmp_marginTop = map.find("marginTop"); if (tmp_marginTop != map.end()) { fromRawValue(context, tmp_marginTop->second, result.marginTop); } auto tmp_marginBottom = map.find("marginBottom"); if (tmp_marginBottom != map.end()) { fromRawValue(context, tmp_marginBottom->second, result.marginBottom); } auto tmp_textAlign = map.find("textAlign"); if (tmp_textAlign != map.end()) { fromRawValue(context, tmp_textAlign->second, result.textAlign); } } static inline std::string toString(const EnrichedMarkdownTextMarkdownStyleMathStruct &value) { return "[Object EnrichedMarkdownTextMarkdownStyleMathStruct]"; } #ifdef RN_SERIALIZABLE_STATE static inline folly::dynamic toDynamic(const EnrichedMarkdownTextMarkdownStyleMathStruct &value) { return value.toDynamic(); } #endif struct EnrichedMarkdownTextMarkdownStyleInlineMathStruct { SharedColor color{}; #ifdef RN_SERIALIZABLE_STATE bool operator==(const EnrichedMarkdownTextMarkdownStyleInlineMathStruct&) const = default; folly::dynamic toDynamic() const { folly::dynamic result = folly::dynamic::object(); result["color"] = ::facebook::react::toDynamic(color); return result; } #endif }; static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownTextMarkdownStyleInlineMathStruct &result) { auto map = (std::unordered_map)value; auto tmp_color = map.find("color"); if (tmp_color != map.end()) { fromRawValue(context, tmp_color->second, result.color); } } static inline std::string toString(const EnrichedMarkdownTextMarkdownStyleInlineMathStruct &value) { return "[Object EnrichedMarkdownTextMarkdownStyleInlineMathStruct]"; } #ifdef RN_SERIALIZABLE_STATE static inline folly::dynamic toDynamic(const EnrichedMarkdownTextMarkdownStyleInlineMathStruct &value) { return value.toDynamic(); } #endif struct EnrichedMarkdownTextMarkdownStyleSpoilerParticlesStruct { Float density{0.0}; Float speed{0.0}; #ifdef RN_SERIALIZABLE_STATE bool operator==(const EnrichedMarkdownTextMarkdownStyleSpoilerParticlesStruct&) const = default; folly::dynamic toDynamic() const { folly::dynamic result = folly::dynamic::object(); result["density"] = density; result["speed"] = speed; return result; } #endif }; static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownTextMarkdownStyleSpoilerParticlesStruct &result) { auto map = (std::unordered_map)value; auto tmp_density = map.find("density"); if (tmp_density != map.end()) { fromRawValue(context, tmp_density->second, result.density); } auto tmp_speed = map.find("speed"); if (tmp_speed != map.end()) { fromRawValue(context, tmp_speed->second, result.speed); } } static inline std::string toString(const EnrichedMarkdownTextMarkdownStyleSpoilerParticlesStruct &value) { return "[Object EnrichedMarkdownTextMarkdownStyleSpoilerParticlesStruct]"; } #ifdef RN_SERIALIZABLE_STATE static inline folly::dynamic toDynamic(const EnrichedMarkdownTextMarkdownStyleSpoilerParticlesStruct &value) { return value.toDynamic(); } #endif struct EnrichedMarkdownTextMarkdownStyleSpoilerSolidStruct { Float borderRadius{0.0}; #ifdef RN_SERIALIZABLE_STATE bool operator==(const EnrichedMarkdownTextMarkdownStyleSpoilerSolidStruct&) const = default; folly::dynamic toDynamic() const { folly::dynamic result = folly::dynamic::object(); result["borderRadius"] = borderRadius; return result; } #endif }; static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownTextMarkdownStyleSpoilerSolidStruct &result) { auto map = (std::unordered_map)value; auto tmp_borderRadius = map.find("borderRadius"); if (tmp_borderRadius != map.end()) { fromRawValue(context, tmp_borderRadius->second, result.borderRadius); } } static inline std::string toString(const EnrichedMarkdownTextMarkdownStyleSpoilerSolidStruct &value) { return "[Object EnrichedMarkdownTextMarkdownStyleSpoilerSolidStruct]"; } #ifdef RN_SERIALIZABLE_STATE static inline folly::dynamic toDynamic(const EnrichedMarkdownTextMarkdownStyleSpoilerSolidStruct &value) { return value.toDynamic(); } #endif struct EnrichedMarkdownTextMarkdownStyleSpoilerStruct { SharedColor color{}; EnrichedMarkdownTextMarkdownStyleSpoilerParticlesStruct particles{}; EnrichedMarkdownTextMarkdownStyleSpoilerSolidStruct solid{}; #ifdef RN_SERIALIZABLE_STATE bool operator==(const EnrichedMarkdownTextMarkdownStyleSpoilerStruct&) const = default; folly::dynamic toDynamic() const { folly::dynamic result = folly::dynamic::object(); result["color"] = ::facebook::react::toDynamic(color); result["particles"] = ::facebook::react::toDynamic(particles); result["solid"] = ::facebook::react::toDynamic(solid); return result; } #endif }; static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownTextMarkdownStyleSpoilerStruct &result) { auto map = (std::unordered_map)value; auto tmp_color = map.find("color"); if (tmp_color != map.end()) { fromRawValue(context, tmp_color->second, result.color); } auto tmp_particles = map.find("particles"); if (tmp_particles != map.end()) { fromRawValue(context, tmp_particles->second, result.particles); } auto tmp_solid = map.find("solid"); if (tmp_solid != map.end()) { fromRawValue(context, tmp_solid->second, result.solid); } } static inline std::string toString(const EnrichedMarkdownTextMarkdownStyleSpoilerStruct &value) { return "[Object EnrichedMarkdownTextMarkdownStyleSpoilerStruct]"; } #ifdef RN_SERIALIZABLE_STATE static inline folly::dynamic toDynamic(const EnrichedMarkdownTextMarkdownStyleSpoilerStruct &value) { return value.toDynamic(); } #endif struct EnrichedMarkdownTextMarkdownStyleSuperscriptStruct { Float fontScale{0.0}; Float baselineOffsetScale{0.0}; #ifdef RN_SERIALIZABLE_STATE bool operator==(const EnrichedMarkdownTextMarkdownStyleSuperscriptStruct&) const = default; folly::dynamic toDynamic() const { folly::dynamic result = folly::dynamic::object(); result["fontScale"] = fontScale; result["baselineOffsetScale"] = baselineOffsetScale; return result; } #endif }; static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownTextMarkdownStyleSuperscriptStruct &result) { auto map = (std::unordered_map)value; auto tmp_fontScale = map.find("fontScale"); if (tmp_fontScale != map.end()) { fromRawValue(context, tmp_fontScale->second, result.fontScale); } auto tmp_baselineOffsetScale = map.find("baselineOffsetScale"); if (tmp_baselineOffsetScale != map.end()) { fromRawValue(context, tmp_baselineOffsetScale->second, result.baselineOffsetScale); } } static inline std::string toString(const EnrichedMarkdownTextMarkdownStyleSuperscriptStruct &value) { return "[Object EnrichedMarkdownTextMarkdownStyleSuperscriptStruct]"; } #ifdef RN_SERIALIZABLE_STATE static inline folly::dynamic toDynamic(const EnrichedMarkdownTextMarkdownStyleSuperscriptStruct &value) { return value.toDynamic(); } #endif struct EnrichedMarkdownTextMarkdownStyleSubscriptStruct { Float fontScale{0.0}; Float baselineOffsetScale{0.0}; #ifdef RN_SERIALIZABLE_STATE bool operator==(const EnrichedMarkdownTextMarkdownStyleSubscriptStruct&) const = default; folly::dynamic toDynamic() const { folly::dynamic result = folly::dynamic::object(); result["fontScale"] = fontScale; result["baselineOffsetScale"] = baselineOffsetScale; return result; } #endif }; static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownTextMarkdownStyleSubscriptStruct &result) { auto map = (std::unordered_map)value; auto tmp_fontScale = map.find("fontScale"); if (tmp_fontScale != map.end()) { fromRawValue(context, tmp_fontScale->second, result.fontScale); } auto tmp_baselineOffsetScale = map.find("baselineOffsetScale"); if (tmp_baselineOffsetScale != map.end()) { fromRawValue(context, tmp_baselineOffsetScale->second, result.baselineOffsetScale); } } static inline std::string toString(const EnrichedMarkdownTextMarkdownStyleSubscriptStruct &value) { return "[Object EnrichedMarkdownTextMarkdownStyleSubscriptStruct]"; } #ifdef RN_SERIALIZABLE_STATE static inline folly::dynamic toDynamic(const EnrichedMarkdownTextMarkdownStyleSubscriptStruct &value) { return value.toDynamic(); } #endif struct EnrichedMarkdownTextMarkdownStyleHighlightStruct { SharedColor color{}; SharedColor backgroundColor{}; #ifdef RN_SERIALIZABLE_STATE bool operator==(const EnrichedMarkdownTextMarkdownStyleHighlightStruct&) const = default; folly::dynamic toDynamic() const { folly::dynamic result = folly::dynamic::object(); result["color"] = ::facebook::react::toDynamic(color); result["backgroundColor"] = ::facebook::react::toDynamic(backgroundColor); return result; } #endif }; static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownTextMarkdownStyleHighlightStruct &result) { auto map = (std::unordered_map)value; auto tmp_color = map.find("color"); if (tmp_color != map.end()) { fromRawValue(context, tmp_color->second, result.color); } auto tmp_backgroundColor = map.find("backgroundColor"); if (tmp_backgroundColor != map.end()) { fromRawValue(context, tmp_backgroundColor->second, result.backgroundColor); } } static inline std::string toString(const EnrichedMarkdownTextMarkdownStyleHighlightStruct &value) { return "[Object EnrichedMarkdownTextMarkdownStyleHighlightStruct]"; } #ifdef RN_SERIALIZABLE_STATE static inline folly::dynamic toDynamic(const EnrichedMarkdownTextMarkdownStyleHighlightStruct &value) { return value.toDynamic(); } #endif struct EnrichedMarkdownTextMarkdownStyleStruct { EnrichedMarkdownTextMarkdownStyleParagraphStruct paragraph{}; EnrichedMarkdownTextMarkdownStyleH1Struct h1{}; EnrichedMarkdownTextMarkdownStyleH2Struct h2{}; EnrichedMarkdownTextMarkdownStyleH3Struct h3{}; EnrichedMarkdownTextMarkdownStyleH4Struct h4{}; EnrichedMarkdownTextMarkdownStyleH5Struct h5{}; EnrichedMarkdownTextMarkdownStyleH6Struct h6{}; EnrichedMarkdownTextMarkdownStyleBlockquoteStruct blockquote{}; EnrichedMarkdownTextMarkdownStyleListStruct list{}; EnrichedMarkdownTextMarkdownStyleCodeBlockStruct codeBlock{}; EnrichedMarkdownTextMarkdownStyleLinkStruct link{}; std::vector linkVariants{}; EnrichedMarkdownTextMarkdownStyleStrongStruct strong{}; EnrichedMarkdownTextMarkdownStyleEmStruct em{}; EnrichedMarkdownTextMarkdownStyleStrikethroughStruct strikethrough{}; EnrichedMarkdownTextMarkdownStyleUnderlineStruct underline{}; EnrichedMarkdownTextMarkdownStyleCodeStruct code{}; EnrichedMarkdownTextMarkdownStyleImageStruct image{}; EnrichedMarkdownTextMarkdownStyleVideoStruct video{}; EnrichedMarkdownTextMarkdownStyleInlineImageStruct inlineImage{}; EnrichedMarkdownTextMarkdownStyleThematicBreakStruct thematicBreak{}; EnrichedMarkdownTextMarkdownStyleTableStruct table{}; EnrichedMarkdownTextMarkdownStyleTaskListStruct taskList{}; EnrichedMarkdownTextMarkdownStyleMathStruct math{}; EnrichedMarkdownTextMarkdownStyleInlineMathStruct inlineMath{}; EnrichedMarkdownTextMarkdownStyleSpoilerStruct spoiler{}; EnrichedMarkdownTextMarkdownStyleSuperscriptStruct superscript{}; EnrichedMarkdownTextMarkdownStyleSubscriptStruct subscript{}; EnrichedMarkdownTextMarkdownStyleHighlightStruct highlight{}; #ifdef RN_SERIALIZABLE_STATE bool operator==(const EnrichedMarkdownTextMarkdownStyleStruct&) const = default; folly::dynamic toDynamic() const { folly::dynamic result = folly::dynamic::object(); result["paragraph"] = ::facebook::react::toDynamic(paragraph); result["h1"] = ::facebook::react::toDynamic(h1); result["h2"] = ::facebook::react::toDynamic(h2); result["h3"] = ::facebook::react::toDynamic(h3); result["h4"] = ::facebook::react::toDynamic(h4); result["h5"] = ::facebook::react::toDynamic(h5); result["h6"] = ::facebook::react::toDynamic(h6); result["blockquote"] = ::facebook::react::toDynamic(blockquote); result["list"] = ::facebook::react::toDynamic(list); result["codeBlock"] = ::facebook::react::toDynamic(codeBlock); result["link"] = ::facebook::react::toDynamic(link); result["linkVariants"] = ::facebook::react::toDynamic(linkVariants); result["strong"] = ::facebook::react::toDynamic(strong); result["em"] = ::facebook::react::toDynamic(em); result["strikethrough"] = ::facebook::react::toDynamic(strikethrough); result["underline"] = ::facebook::react::toDynamic(underline); result["code"] = ::facebook::react::toDynamic(code); result["image"] = ::facebook::react::toDynamic(image); result["video"] = ::facebook::react::toDynamic(video); result["inlineImage"] = ::facebook::react::toDynamic(inlineImage); result["thematicBreak"] = ::facebook::react::toDynamic(thematicBreak); result["table"] = ::facebook::react::toDynamic(table); result["taskList"] = ::facebook::react::toDynamic(taskList); result["math"] = ::facebook::react::toDynamic(math); result["inlineMath"] = ::facebook::react::toDynamic(inlineMath); result["spoiler"] = ::facebook::react::toDynamic(spoiler); result["superscript"] = ::facebook::react::toDynamic(superscript); result["subscript"] = ::facebook::react::toDynamic(subscript); result["highlight"] = ::facebook::react::toDynamic(highlight); return result; } #endif }; static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownTextMarkdownStyleStruct &result) { auto map = (std::unordered_map)value; auto tmp_paragraph = map.find("paragraph"); if (tmp_paragraph != map.end()) { fromRawValue(context, tmp_paragraph->second, result.paragraph); } auto tmp_h1 = map.find("h1"); if (tmp_h1 != map.end()) { fromRawValue(context, tmp_h1->second, result.h1); } auto tmp_h2 = map.find("h2"); if (tmp_h2 != map.end()) { fromRawValue(context, tmp_h2->second, result.h2); } auto tmp_h3 = map.find("h3"); if (tmp_h3 != map.end()) { fromRawValue(context, tmp_h3->second, result.h3); } auto tmp_h4 = map.find("h4"); if (tmp_h4 != map.end()) { fromRawValue(context, tmp_h4->second, result.h4); } auto tmp_h5 = map.find("h5"); if (tmp_h5 != map.end()) { fromRawValue(context, tmp_h5->second, result.h5); } auto tmp_h6 = map.find("h6"); if (tmp_h6 != map.end()) { fromRawValue(context, tmp_h6->second, result.h6); } auto tmp_blockquote = map.find("blockquote"); if (tmp_blockquote != map.end()) { fromRawValue(context, tmp_blockquote->second, result.blockquote); } auto tmp_list = map.find("list"); if (tmp_list != map.end()) { fromRawValue(context, tmp_list->second, result.list); } auto tmp_codeBlock = map.find("codeBlock"); if (tmp_codeBlock != map.end()) { fromRawValue(context, tmp_codeBlock->second, result.codeBlock); } auto tmp_link = map.find("link"); if (tmp_link != map.end()) { fromRawValue(context, tmp_link->second, result.link); } auto tmp_linkVariants = map.find("linkVariants"); if (tmp_linkVariants != map.end()) { fromRawValue(context, tmp_linkVariants->second, result.linkVariants); } auto tmp_strong = map.find("strong"); if (tmp_strong != map.end()) { fromRawValue(context, tmp_strong->second, result.strong); } auto tmp_em = map.find("em"); if (tmp_em != map.end()) { fromRawValue(context, tmp_em->second, result.em); } auto tmp_strikethrough = map.find("strikethrough"); if (tmp_strikethrough != map.end()) { fromRawValue(context, tmp_strikethrough->second, result.strikethrough); } auto tmp_underline = map.find("underline"); if (tmp_underline != map.end()) { fromRawValue(context, tmp_underline->second, result.underline); } auto tmp_code = map.find("code"); if (tmp_code != map.end()) { fromRawValue(context, tmp_code->second, result.code); } auto tmp_image = map.find("image"); if (tmp_image != map.end()) { fromRawValue(context, tmp_image->second, result.image); } auto tmp_video = map.find("video"); if (tmp_video != map.end()) { fromRawValue(context, tmp_video->second, result.video); } auto tmp_inlineImage = map.find("inlineImage"); if (tmp_inlineImage != map.end()) { fromRawValue(context, tmp_inlineImage->second, result.inlineImage); } auto tmp_thematicBreak = map.find("thematicBreak"); if (tmp_thematicBreak != map.end()) { fromRawValue(context, tmp_thematicBreak->second, result.thematicBreak); } auto tmp_table = map.find("table"); if (tmp_table != map.end()) { fromRawValue(context, tmp_table->second, result.table); } auto tmp_taskList = map.find("taskList"); if (tmp_taskList != map.end()) { fromRawValue(context, tmp_taskList->second, result.taskList); } auto tmp_math = map.find("math"); if (tmp_math != map.end()) { fromRawValue(context, tmp_math->second, result.math); } auto tmp_inlineMath = map.find("inlineMath"); if (tmp_inlineMath != map.end()) { fromRawValue(context, tmp_inlineMath->second, result.inlineMath); } auto tmp_spoiler = map.find("spoiler"); if (tmp_spoiler != map.end()) { fromRawValue(context, tmp_spoiler->second, result.spoiler); } auto tmp_superscript = map.find("superscript"); if (tmp_superscript != map.end()) { fromRawValue(context, tmp_superscript->second, result.superscript); } auto tmp_subscript = map.find("subscript"); if (tmp_subscript != map.end()) { fromRawValue(context, tmp_subscript->second, result.subscript); } auto tmp_highlight = map.find("highlight"); if (tmp_highlight != map.end()) { fromRawValue(context, tmp_highlight->second, result.highlight); } } static inline std::string toString(const EnrichedMarkdownTextMarkdownStyleStruct &value) { return "[Object EnrichedMarkdownTextMarkdownStyleStruct]"; } #ifdef RN_SERIALIZABLE_STATE static inline folly::dynamic toDynamic(const EnrichedMarkdownTextMarkdownStyleStruct &value) { return value.toDynamic(); } #endif struct EnrichedMarkdownTextMd4cFlagsStruct { bool underline{false}; bool superscript{false}; bool subscript{false}; bool latexMath{false}; bool highlight{false}; bool hardSoftBreaks{false}; bool preserveBlankLines{false}; bool admonitions{false}; #ifdef RN_SERIALIZABLE_STATE bool operator==(const EnrichedMarkdownTextMd4cFlagsStruct&) const = default; folly::dynamic toDynamic() const { folly::dynamic result = folly::dynamic::object(); result["underline"] = underline; result["superscript"] = superscript; result["subscript"] = subscript; result["latexMath"] = latexMath; result["highlight"] = highlight; result["hardSoftBreaks"] = hardSoftBreaks; result["preserveBlankLines"] = preserveBlankLines; result["admonitions"] = admonitions; return result; } #endif }; static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownTextMd4cFlagsStruct &result) { auto map = (std::unordered_map)value; auto tmp_underline = map.find("underline"); if (tmp_underline != map.end()) { fromRawValue(context, tmp_underline->second, result.underline); } auto tmp_superscript = map.find("superscript"); if (tmp_superscript != map.end()) { fromRawValue(context, tmp_superscript->second, result.superscript); } auto tmp_subscript = map.find("subscript"); if (tmp_subscript != map.end()) { fromRawValue(context, tmp_subscript->second, result.subscript); } auto tmp_latexMath = map.find("latexMath"); if (tmp_latexMath != map.end()) { fromRawValue(context, tmp_latexMath->second, result.latexMath); } auto tmp_highlight = map.find("highlight"); if (tmp_highlight != map.end()) { fromRawValue(context, tmp_highlight->second, result.highlight); } auto tmp_hardSoftBreaks = map.find("hardSoftBreaks"); if (tmp_hardSoftBreaks != map.end()) { fromRawValue(context, tmp_hardSoftBreaks->second, result.hardSoftBreaks); } auto tmp_preserveBlankLines = map.find("preserveBlankLines"); if (tmp_preserveBlankLines != map.end()) { fromRawValue(context, tmp_preserveBlankLines->second, result.preserveBlankLines); } auto tmp_admonitions = map.find("admonitions"); if (tmp_admonitions != map.end()) { fromRawValue(context, tmp_admonitions->second, result.admonitions); } } static inline std::string toString(const EnrichedMarkdownTextMd4cFlagsStruct &value) { return "[Object EnrichedMarkdownTextMd4cFlagsStruct]"; } #ifdef RN_SERIALIZABLE_STATE static inline folly::dynamic toDynamic(const EnrichedMarkdownTextMd4cFlagsStruct &value) { return value.toDynamic(); } #endif struct EnrichedMarkdownTextStreamingConfigStruct { std::string tableMode{}; std::string codeBlockMode{}; #ifdef RN_SERIALIZABLE_STATE bool operator==(const EnrichedMarkdownTextStreamingConfigStruct&) const = default; folly::dynamic toDynamic() const { folly::dynamic result = folly::dynamic::object(); result["tableMode"] = tableMode; result["codeBlockMode"] = codeBlockMode; return result; } #endif }; static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownTextStreamingConfigStruct &result) { auto map = (std::unordered_map)value; auto tmp_tableMode = map.find("tableMode"); if (tmp_tableMode != map.end()) { fromRawValue(context, tmp_tableMode->second, result.tableMode); } auto tmp_codeBlockMode = map.find("codeBlockMode"); if (tmp_codeBlockMode != map.end()) { fromRawValue(context, tmp_codeBlockMode->second, result.codeBlockMode); } } static inline std::string toString(const EnrichedMarkdownTextStreamingConfigStruct &value) { return "[Object EnrichedMarkdownTextStreamingConfigStruct]"; } #ifdef RN_SERIALIZABLE_STATE static inline folly::dynamic toDynamic(const EnrichedMarkdownTextStreamingConfigStruct &value) { return value.toDynamic(); } #endif struct EnrichedMarkdownTextContextMenuItemsStruct { std::string text{}; std::string icon{}; #ifdef RN_SERIALIZABLE_STATE bool operator==(const EnrichedMarkdownTextContextMenuItemsStruct&) const = default; folly::dynamic toDynamic() const { folly::dynamic result = folly::dynamic::object(); result["text"] = text; result["icon"] = icon; return result; } #endif }; static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownTextContextMenuItemsStruct &result) { auto map = (std::unordered_map)value; auto tmp_text = map.find("text"); if (tmp_text != map.end()) { fromRawValue(context, tmp_text->second, result.text); } auto tmp_icon = map.find("icon"); if (tmp_icon != map.end()) { fromRawValue(context, tmp_icon->second, result.icon); } } static inline std::string toString(const EnrichedMarkdownTextContextMenuItemsStruct &value) { return "[Object EnrichedMarkdownTextContextMenuItemsStruct]"; } #ifdef RN_SERIALIZABLE_STATE static inline folly::dynamic toDynamic(const EnrichedMarkdownTextContextMenuItemsStruct &value) { return value.toDynamic(); } #endif static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, std::vector &result) { auto items = (std::vector)value; for (const auto &item : items) { EnrichedMarkdownTextContextMenuItemsStruct newItem; fromRawValue(context, item, newItem); result.emplace_back(newItem); } } struct EnrichedMarkdownTextImageRequestHeadersStruct { std::string name{}; std::string value{}; #ifdef RN_SERIALIZABLE_STATE bool operator==(const EnrichedMarkdownTextImageRequestHeadersStruct&) const = default; folly::dynamic toDynamic() const { folly::dynamic result = folly::dynamic::object(); result["name"] = name; result["value"] = value; return result; } #endif }; static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownTextImageRequestHeadersStruct &result) { auto map = (std::unordered_map)value; auto tmp_name = map.find("name"); if (tmp_name != map.end()) { fromRawValue(context, tmp_name->second, result.name); } auto tmp_value = map.find("value"); if (tmp_value != map.end()) { fromRawValue(context, tmp_value->second, result.value); } } static inline std::string toString(const EnrichedMarkdownTextImageRequestHeadersStruct &value) { return "[Object EnrichedMarkdownTextImageRequestHeadersStruct]"; } #ifdef RN_SERIALIZABLE_STATE static inline folly::dynamic toDynamic(const EnrichedMarkdownTextImageRequestHeadersStruct &value) { return value.toDynamic(); } #endif static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, std::vector &result) { auto items = (std::vector)value; for (const auto &item : items) { EnrichedMarkdownTextImageRequestHeadersStruct newItem; fromRawValue(context, item, newItem); result.emplace_back(newItem); } } struct EnrichedMarkdownTextLinkPillContentStruct { std::string url{}; std::string label{}; std::string iconUri{}; SharedColor iconTintColor{}; #ifdef RN_SERIALIZABLE_STATE bool operator==(const EnrichedMarkdownTextLinkPillContentStruct&) const = default; folly::dynamic toDynamic() const { folly::dynamic result = folly::dynamic::object(); result["url"] = url; result["label"] = label; result["iconUri"] = iconUri; result["iconTintColor"] = ::facebook::react::toDynamic(iconTintColor); return result; } #endif }; static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownTextLinkPillContentStruct &result) { auto map = (std::unordered_map)value; auto tmp_url = map.find("url"); if (tmp_url != map.end()) { fromRawValue(context, tmp_url->second, result.url); } auto tmp_label = map.find("label"); if (tmp_label != map.end()) { fromRawValue(context, tmp_label->second, result.label); } auto tmp_iconUri = map.find("iconUri"); if (tmp_iconUri != map.end()) { fromRawValue(context, tmp_iconUri->second, result.iconUri); } auto tmp_iconTintColor = map.find("iconTintColor"); if (tmp_iconTintColor != map.end()) { fromRawValue(context, tmp_iconTintColor->second, result.iconTintColor); } } static inline std::string toString(const EnrichedMarkdownTextLinkPillContentStruct &value) { return "[Object EnrichedMarkdownTextLinkPillContentStruct]"; } #ifdef RN_SERIALIZABLE_STATE static inline folly::dynamic toDynamic(const EnrichedMarkdownTextLinkPillContentStruct &value) { return value.toDynamic(); } #endif static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, std::vector &result) { auto items = (std::vector)value; for (const auto &item : items) { EnrichedMarkdownTextLinkPillContentStruct newItem; fromRawValue(context, item, newItem); result.emplace_back(newItem); } } struct EnrichedMarkdownTextLinkRecognitionTextStruct { std::string pattern{}; bool caseInsensitive{false}; bool dotAll{false}; bool isDisabled{false}; bool isDefault{false}; #ifdef RN_SERIALIZABLE_STATE bool operator==(const EnrichedMarkdownTextLinkRecognitionTextStruct&) const = default; folly::dynamic toDynamic() const { folly::dynamic result = folly::dynamic::object(); result["pattern"] = pattern; result["caseInsensitive"] = caseInsensitive; result["dotAll"] = dotAll; result["isDisabled"] = isDisabled; result["isDefault"] = isDefault; return result; } #endif }; static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownTextLinkRecognitionTextStruct &result) { auto map = (std::unordered_map)value; auto tmp_pattern = map.find("pattern"); if (tmp_pattern != map.end()) { fromRawValue(context, tmp_pattern->second, result.pattern); } auto tmp_caseInsensitive = map.find("caseInsensitive"); if (tmp_caseInsensitive != map.end()) { fromRawValue(context, tmp_caseInsensitive->second, result.caseInsensitive); } auto tmp_dotAll = map.find("dotAll"); if (tmp_dotAll != map.end()) { fromRawValue(context, tmp_dotAll->second, result.dotAll); } auto tmp_isDisabled = map.find("isDisabled"); if (tmp_isDisabled != map.end()) { fromRawValue(context, tmp_isDisabled->second, result.isDisabled); } auto tmp_isDefault = map.find("isDefault"); if (tmp_isDefault != map.end()) { fromRawValue(context, tmp_isDefault->second, result.isDefault); } } static inline std::string toString(const EnrichedMarkdownTextLinkRecognitionTextStruct &value) { return "[Object EnrichedMarkdownTextLinkRecognitionTextStruct]"; } #ifdef RN_SERIALIZABLE_STATE static inline folly::dynamic toDynamic(const EnrichedMarkdownTextLinkRecognitionTextStruct &value) { return value.toDynamic(); } #endif struct EnrichedMarkdownTextLinkRecognitionInlineCodeStruct { std::string pattern{}; bool caseInsensitive{false}; bool dotAll{false}; bool isDisabled{false}; bool isDefault{false}; #ifdef RN_SERIALIZABLE_STATE bool operator==(const EnrichedMarkdownTextLinkRecognitionInlineCodeStruct&) const = default; folly::dynamic toDynamic() const { folly::dynamic result = folly::dynamic::object(); result["pattern"] = pattern; result["caseInsensitive"] = caseInsensitive; result["dotAll"] = dotAll; result["isDisabled"] = isDisabled; result["isDefault"] = isDefault; return result; } #endif }; static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownTextLinkRecognitionInlineCodeStruct &result) { auto map = (std::unordered_map)value; auto tmp_pattern = map.find("pattern"); if (tmp_pattern != map.end()) { fromRawValue(context, tmp_pattern->second, result.pattern); } auto tmp_caseInsensitive = map.find("caseInsensitive"); if (tmp_caseInsensitive != map.end()) { fromRawValue(context, tmp_caseInsensitive->second, result.caseInsensitive); } auto tmp_dotAll = map.find("dotAll"); if (tmp_dotAll != map.end()) { fromRawValue(context, tmp_dotAll->second, result.dotAll); } auto tmp_isDisabled = map.find("isDisabled"); if (tmp_isDisabled != map.end()) { fromRawValue(context, tmp_isDisabled->second, result.isDisabled); } auto tmp_isDefault = map.find("isDefault"); if (tmp_isDefault != map.end()) { fromRawValue(context, tmp_isDefault->second, result.isDefault); } } static inline std::string toString(const EnrichedMarkdownTextLinkRecognitionInlineCodeStruct &value) { return "[Object EnrichedMarkdownTextLinkRecognitionInlineCodeStruct]"; } #ifdef RN_SERIALIZABLE_STATE static inline folly::dynamic toDynamic(const EnrichedMarkdownTextLinkRecognitionInlineCodeStruct &value) { return value.toDynamic(); } #endif struct EnrichedMarkdownTextLinkRecognitionStruct { EnrichedMarkdownTextLinkRecognitionTextStruct text{}; EnrichedMarkdownTextLinkRecognitionInlineCodeStruct inlineCode{}; #ifdef RN_SERIALIZABLE_STATE bool operator==(const EnrichedMarkdownTextLinkRecognitionStruct&) const = default; folly::dynamic toDynamic() const { folly::dynamic result = folly::dynamic::object(); result["text"] = ::facebook::react::toDynamic(text); result["inlineCode"] = ::facebook::react::toDynamic(inlineCode); return result; } #endif }; static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownTextLinkRecognitionStruct &result) { auto map = (std::unordered_map)value; auto tmp_text = map.find("text"); if (tmp_text != map.end()) { fromRawValue(context, tmp_text->second, result.text); } auto tmp_inlineCode = map.find("inlineCode"); if (tmp_inlineCode != map.end()) { fromRawValue(context, tmp_inlineCode->second, result.inlineCode); } } static inline std::string toString(const EnrichedMarkdownTextLinkRecognitionStruct &value) { return "[Object EnrichedMarkdownTextLinkRecognitionStruct]"; } #ifdef RN_SERIALIZABLE_STATE static inline folly::dynamic toDynamic(const EnrichedMarkdownTextLinkRecognitionStruct &value) { return value.toDynamic(); } #endif struct EnrichedMarkdownTextLinkContextMenuItemsItemsStruct { std::string text{}; std::string icon{}; bool disabled{false}; bool destructive{false}; #ifdef RN_SERIALIZABLE_STATE bool operator==(const EnrichedMarkdownTextLinkContextMenuItemsItemsStruct&) const = default; folly::dynamic toDynamic() const { folly::dynamic result = folly::dynamic::object(); result["text"] = text; result["icon"] = icon; result["disabled"] = disabled; result["destructive"] = destructive; return result; } #endif }; static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownTextLinkContextMenuItemsItemsStruct &result) { auto map = (std::unordered_map)value; auto tmp_text = map.find("text"); if (tmp_text != map.end()) { fromRawValue(context, tmp_text->second, result.text); } auto tmp_icon = map.find("icon"); if (tmp_icon != map.end()) { fromRawValue(context, tmp_icon->second, result.icon); } auto tmp_disabled = map.find("disabled"); if (tmp_disabled != map.end()) { fromRawValue(context, tmp_disabled->second, result.disabled); } auto tmp_destructive = map.find("destructive"); if (tmp_destructive != map.end()) { fromRawValue(context, tmp_destructive->second, result.destructive); } } static inline std::string toString(const EnrichedMarkdownTextLinkContextMenuItemsItemsStruct &value) { return "[Object EnrichedMarkdownTextLinkContextMenuItemsItemsStruct]"; } #ifdef RN_SERIALIZABLE_STATE static inline folly::dynamic toDynamic(const EnrichedMarkdownTextLinkContextMenuItemsItemsStruct &value) { return value.toDynamic(); } #endif static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, std::vector &result) { auto items = (std::vector)value; for (const auto &item : items) { EnrichedMarkdownTextLinkContextMenuItemsItemsStruct newItem; fromRawValue(context, item, newItem); result.emplace_back(newItem); } } struct EnrichedMarkdownTextLinkContextMenuItemsStruct { std::string pattern{}; std::vector items{}; #ifdef RN_SERIALIZABLE_STATE bool operator==(const EnrichedMarkdownTextLinkContextMenuItemsStruct&) const = default; folly::dynamic toDynamic() const { folly::dynamic result = folly::dynamic::object(); result["pattern"] = pattern; result["items"] = ::facebook::react::toDynamic(items); return result; } #endif }; static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownTextLinkContextMenuItemsStruct &result) { auto map = (std::unordered_map)value; auto tmp_pattern = map.find("pattern"); if (tmp_pattern != map.end()) { fromRawValue(context, tmp_pattern->second, result.pattern); } auto tmp_items = map.find("items"); if (tmp_items != map.end()) { fromRawValue(context, tmp_items->second, result.items); } } static inline std::string toString(const EnrichedMarkdownTextLinkContextMenuItemsStruct &value) { return "[Object EnrichedMarkdownTextLinkContextMenuItemsStruct]"; } #ifdef RN_SERIALIZABLE_STATE static inline folly::dynamic toDynamic(const EnrichedMarkdownTextLinkContextMenuItemsStruct &value) { return value.toDynamic(); } #endif static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, std::vector &result) { auto items = (std::vector)value; for (const auto &item : items) { EnrichedMarkdownTextLinkContextMenuItemsStruct newItem; fromRawValue(context, item, newItem); result.emplace_back(newItem); } } struct EnrichedMarkdownTextSelectionMenuConfigStruct { bool copyAsMarkdown{false}; bool copyImageUrl{false}; std::string copyLabel{}; std::string copyAsMarkdownLabel{}; std::string copyImageUrlLabel{}; std::string copyImageUrlsLabel{}; std::vector copyImageUrlPluralTemplates{}; #ifdef RN_SERIALIZABLE_STATE bool operator==(const EnrichedMarkdownTextSelectionMenuConfigStruct&) const = default; folly::dynamic toDynamic() const { folly::dynamic result = folly::dynamic::object(); result["copyAsMarkdown"] = copyAsMarkdown; result["copyImageUrl"] = copyImageUrl; result["copyLabel"] = copyLabel; result["copyAsMarkdownLabel"] = copyAsMarkdownLabel; result["copyImageUrlLabel"] = copyImageUrlLabel; result["copyImageUrlsLabel"] = copyImageUrlsLabel; result["copyImageUrlPluralTemplates"] = ::facebook::react::toDynamic(copyImageUrlPluralTemplates); return result; } #endif }; static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownTextSelectionMenuConfigStruct &result) { auto map = (std::unordered_map)value; auto tmp_copyAsMarkdown = map.find("copyAsMarkdown"); if (tmp_copyAsMarkdown != map.end()) { fromRawValue(context, tmp_copyAsMarkdown->second, result.copyAsMarkdown); } auto tmp_copyImageUrl = map.find("copyImageUrl"); if (tmp_copyImageUrl != map.end()) { fromRawValue(context, tmp_copyImageUrl->second, result.copyImageUrl); } auto tmp_copyLabel = map.find("copyLabel"); if (tmp_copyLabel != map.end()) { fromRawValue(context, tmp_copyLabel->second, result.copyLabel); } auto tmp_copyAsMarkdownLabel = map.find("copyAsMarkdownLabel"); if (tmp_copyAsMarkdownLabel != map.end()) { fromRawValue(context, tmp_copyAsMarkdownLabel->second, result.copyAsMarkdownLabel); } auto tmp_copyImageUrlLabel = map.find("copyImageUrlLabel"); if (tmp_copyImageUrlLabel != map.end()) { fromRawValue(context, tmp_copyImageUrlLabel->second, result.copyImageUrlLabel); } auto tmp_copyImageUrlsLabel = map.find("copyImageUrlsLabel"); if (tmp_copyImageUrlsLabel != map.end()) { fromRawValue(context, tmp_copyImageUrlsLabel->second, result.copyImageUrlsLabel); } auto tmp_copyImageUrlPluralTemplates = map.find("copyImageUrlPluralTemplates"); if (tmp_copyImageUrlPluralTemplates != map.end()) { fromRawValue(context, tmp_copyImageUrlPluralTemplates->second, result.copyImageUrlPluralTemplates); } } static inline std::string toString(const EnrichedMarkdownTextSelectionMenuConfigStruct &value) { return "[Object EnrichedMarkdownTextSelectionMenuConfigStruct]"; } #ifdef RN_SERIALIZABLE_STATE static inline folly::dynamic toDynamic(const EnrichedMarkdownTextSelectionMenuConfigStruct &value) { return value.toDynamic(); } #endif struct EnrichedMarkdownTextAccessibilityLabelsListStruct { std::string bulletPoint{}; std::string nestedBulletPoint{}; std::string orderedItem{}; std::string nestedOrderedItem{}; #ifdef RN_SERIALIZABLE_STATE bool operator==(const EnrichedMarkdownTextAccessibilityLabelsListStruct&) const = default; folly::dynamic toDynamic() const { folly::dynamic result = folly::dynamic::object(); result["bulletPoint"] = bulletPoint; result["nestedBulletPoint"] = nestedBulletPoint; result["orderedItem"] = orderedItem; result["nestedOrderedItem"] = nestedOrderedItem; return result; } #endif }; static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownTextAccessibilityLabelsListStruct &result) { auto map = (std::unordered_map)value; auto tmp_bulletPoint = map.find("bulletPoint"); if (tmp_bulletPoint != map.end()) { fromRawValue(context, tmp_bulletPoint->second, result.bulletPoint); } auto tmp_nestedBulletPoint = map.find("nestedBulletPoint"); if (tmp_nestedBulletPoint != map.end()) { fromRawValue(context, tmp_nestedBulletPoint->second, result.nestedBulletPoint); } auto tmp_orderedItem = map.find("orderedItem"); if (tmp_orderedItem != map.end()) { fromRawValue(context, tmp_orderedItem->second, result.orderedItem); } auto tmp_nestedOrderedItem = map.find("nestedOrderedItem"); if (tmp_nestedOrderedItem != map.end()) { fromRawValue(context, tmp_nestedOrderedItem->second, result.nestedOrderedItem); } } static inline std::string toString(const EnrichedMarkdownTextAccessibilityLabelsListStruct &value) { return "[Object EnrichedMarkdownTextAccessibilityLabelsListStruct]"; } #ifdef RN_SERIALIZABLE_STATE static inline folly::dynamic toDynamic(const EnrichedMarkdownTextAccessibilityLabelsListStruct &value) { return value.toDynamic(); } #endif struct EnrichedMarkdownTextAccessibilityLabelsBlockquoteStruct { std::string quote{}; std::string nestedQuote{}; #ifdef RN_SERIALIZABLE_STATE bool operator==(const EnrichedMarkdownTextAccessibilityLabelsBlockquoteStruct&) const = default; folly::dynamic toDynamic() const { folly::dynamic result = folly::dynamic::object(); result["quote"] = quote; result["nestedQuote"] = nestedQuote; return result; } #endif }; static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownTextAccessibilityLabelsBlockquoteStruct &result) { auto map = (std::unordered_map)value; auto tmp_quote = map.find("quote"); if (tmp_quote != map.end()) { fromRawValue(context, tmp_quote->second, result.quote); } auto tmp_nestedQuote = map.find("nestedQuote"); if (tmp_nestedQuote != map.end()) { fromRawValue(context, tmp_nestedQuote->second, result.nestedQuote); } } static inline std::string toString(const EnrichedMarkdownTextAccessibilityLabelsBlockquoteStruct &value) { return "[Object EnrichedMarkdownTextAccessibilityLabelsBlockquoteStruct]"; } #ifdef RN_SERIALIZABLE_STATE static inline folly::dynamic toDynamic(const EnrichedMarkdownTextAccessibilityLabelsBlockquoteStruct &value) { return value.toDynamic(); } #endif struct EnrichedMarkdownTextAccessibilityLabelsTableStruct { std::string row{}; #ifdef RN_SERIALIZABLE_STATE bool operator==(const EnrichedMarkdownTextAccessibilityLabelsTableStruct&) const = default; folly::dynamic toDynamic() const { folly::dynamic result = folly::dynamic::object(); result["row"] = row; return result; } #endif }; static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownTextAccessibilityLabelsTableStruct &result) { auto map = (std::unordered_map)value; auto tmp_row = map.find("row"); if (tmp_row != map.end()) { fromRawValue(context, tmp_row->second, result.row); } } static inline std::string toString(const EnrichedMarkdownTextAccessibilityLabelsTableStruct &value) { return "[Object EnrichedMarkdownTextAccessibilityLabelsTableStruct]"; } #ifdef RN_SERIALIZABLE_STATE static inline folly::dynamic toDynamic(const EnrichedMarkdownTextAccessibilityLabelsTableStruct &value) { return value.toDynamic(); } #endif struct EnrichedMarkdownTextAccessibilityLabelsMathStruct { std::string equation{}; #ifdef RN_SERIALIZABLE_STATE bool operator==(const EnrichedMarkdownTextAccessibilityLabelsMathStruct&) const = default; folly::dynamic toDynamic() const { folly::dynamic result = folly::dynamic::object(); result["equation"] = equation; return result; } #endif }; static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownTextAccessibilityLabelsMathStruct &result) { auto map = (std::unordered_map)value; auto tmp_equation = map.find("equation"); if (tmp_equation != map.end()) { fromRawValue(context, tmp_equation->second, result.equation); } } static inline std::string toString(const EnrichedMarkdownTextAccessibilityLabelsMathStruct &value) { return "[Object EnrichedMarkdownTextAccessibilityLabelsMathStruct]"; } #ifdef RN_SERIALIZABLE_STATE static inline folly::dynamic toDynamic(const EnrichedMarkdownTextAccessibilityLabelsMathStruct &value) { return value.toDynamic(); } #endif struct EnrichedMarkdownTextAccessibilityLabelsRotorStruct { std::string headings{}; std::string links{}; std::string images{}; #ifdef RN_SERIALIZABLE_STATE bool operator==(const EnrichedMarkdownTextAccessibilityLabelsRotorStruct&) const = default; folly::dynamic toDynamic() const { folly::dynamic result = folly::dynamic::object(); result["headings"] = headings; result["links"] = links; result["images"] = images; return result; } #endif }; static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownTextAccessibilityLabelsRotorStruct &result) { auto map = (std::unordered_map)value; auto tmp_headings = map.find("headings"); if (tmp_headings != map.end()) { fromRawValue(context, tmp_headings->second, result.headings); } auto tmp_links = map.find("links"); if (tmp_links != map.end()) { fromRawValue(context, tmp_links->second, result.links); } auto tmp_images = map.find("images"); if (tmp_images != map.end()) { fromRawValue(context, tmp_images->second, result.images); } } static inline std::string toString(const EnrichedMarkdownTextAccessibilityLabelsRotorStruct &value) { return "[Object EnrichedMarkdownTextAccessibilityLabelsRotorStruct]"; } #ifdef RN_SERIALIZABLE_STATE static inline folly::dynamic toDynamic(const EnrichedMarkdownTextAccessibilityLabelsRotorStruct &value) { return value.toDynamic(); } #endif struct EnrichedMarkdownTextAccessibilityLabelsStruct { EnrichedMarkdownTextAccessibilityLabelsListStruct list{}; EnrichedMarkdownTextAccessibilityLabelsBlockquoteStruct blockquote{}; EnrichedMarkdownTextAccessibilityLabelsTableStruct table{}; EnrichedMarkdownTextAccessibilityLabelsMathStruct math{}; EnrichedMarkdownTextAccessibilityLabelsRotorStruct rotor{}; #ifdef RN_SERIALIZABLE_STATE bool operator==(const EnrichedMarkdownTextAccessibilityLabelsStruct&) const = default; folly::dynamic toDynamic() const { folly::dynamic result = folly::dynamic::object(); result["list"] = ::facebook::react::toDynamic(list); result["blockquote"] = ::facebook::react::toDynamic(blockquote); result["table"] = ::facebook::react::toDynamic(table); result["math"] = ::facebook::react::toDynamic(math); result["rotor"] = ::facebook::react::toDynamic(rotor); return result; } #endif }; static inline void fromRawValue(const PropsParserContext& context, const RawValue &value, EnrichedMarkdownTextAccessibilityLabelsStruct &result) { auto map = (std::unordered_map)value; auto tmp_list = map.find("list"); if (tmp_list != map.end()) { fromRawValue(context, tmp_list->second, result.list); } auto tmp_blockquote = map.find("blockquote"); if (tmp_blockquote != map.end()) { fromRawValue(context, tmp_blockquote->second, result.blockquote); } auto tmp_table = map.find("table"); if (tmp_table != map.end()) { fromRawValue(context, tmp_table->second, result.table); } auto tmp_math = map.find("math"); if (tmp_math != map.end()) { fromRawValue(context, tmp_math->second, result.math); } auto tmp_rotor = map.find("rotor"); if (tmp_rotor != map.end()) { fromRawValue(context, tmp_rotor->second, result.rotor); } } static inline std::string toString(const EnrichedMarkdownTextAccessibilityLabelsStruct &value) { return "[Object EnrichedMarkdownTextAccessibilityLabelsStruct]"; } #ifdef RN_SERIALIZABLE_STATE static inline folly::dynamic toDynamic(const EnrichedMarkdownTextAccessibilityLabelsStruct &value) { return value.toDynamic(); } #endif class EnrichedMarkdownTextProps final : public ViewProps { public: EnrichedMarkdownTextProps() = default; EnrichedMarkdownTextProps(const PropsParserContext& context, const EnrichedMarkdownTextProps &sourceProps, const RawProps &rawProps); #pragma mark - Props std::string markdown{}; EnrichedMarkdownTextMarkdownStyleStruct markdownStyle{}; bool enableImagePress{false}; bool enableTaskListItemToggle{true}; bool enableCodeBlockPress{false}; bool enableBlockContextMenu{true}; bool enableLinkPreview{true}; bool selectable{false}; SharedColor selectionColor{}; SharedColor selectionHandleColor{}; EnrichedMarkdownTextMd4cFlagsStruct md4cFlags{}; bool isGFM{false}; bool allowFontScaling{true}; Float maxFontSizeMultiplier{0.0}; bool allowTrailingMargin{false}; bool streamingAnimation{false}; EnrichedMarkdownTextStreamingConfigStruct streamingConfig{}; std::string spoilerOverlay{std::string{"particles"}}; std::vector contextMenuItems{}; std::vector imageRequestHeaders{}; std::vector linkPillContent{}; EnrichedMarkdownTextLinkRecognitionStruct linkRecognition{}; std::vector linkContextMenuItems{}; EnrichedMarkdownTextSelectionMenuConfigStruct selectionMenuConfig{}; EnrichedMarkdownTextAccessibilityLabelsStruct accessibilityLabels{}; std::string textBreakStrategy{std::string{"highQuality"}}; std::string lineBreakStrategyIOS{std::string{"none"}}; std::string writingDirection{std::string{"first-strong"}}; int numberOfLines{0}; std::string ellipsizeMode{std::string{"tail"}}; #ifdef RN_SERIALIZABLE_STATE ComponentName getDiffPropsImplementationTarget() const override; folly::dynamic getDiffProps(const Props* prevProps) const override; #endif }; } // namespace facebook::react