toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{
'heading_style': headingStyle.toJson,
'list_indent_type': listIndentType.toJson,
'list_indent_width': listIndentWidth,
'bullets': bullets,
'strong_em_symbol': strongEmSymbol,
'escape_asterisks': escapeAsterisks,
'escape_underscores': escapeUnderscores,
'escape_misc': escapeMisc,
'escape_ascii': escapeAscii,
'code_language': codeLanguage,
'autolinks': autolinks,
'default_title': defaultTitle,
'br_in_tables': brInTables,
'highlight_style': highlightStyle.toJson,
'extract_metadata': extractMetadata,
'whitespace_mode': whitespaceMode.toJson,
'strip_newlines': stripNewlines,
'wrap': wrap,
'wrap_width': wrapWidth,
'convert_as_inline': convertAsInline,
'sub_symbol': subSymbol,
'sup_symbol': supSymbol,
'newline_style': newlineStyle.toJson,
'code_block_style': codeBlockStyle.toJson,
'keep_inline_images_in': keepInlineImagesIn,
'preprocessing': preprocessing.toJson(),
'encoding': encoding,
'debug': debug,
'strip_tags': stripTags,
'preserve_tags': preserveTags,
'skip_images': skipImages,
'link_style': linkStyle.toJson,
'output_format': outputFormat.toJson,
'include_document_structure': includeDocumentStructure,
'extract_images': extractImages,
'max_image_size': maxImageSize,
'capture_svg': captureSvg,
'infer_dimensions': inferDimensions,
'exclude_selectors': excludeSelectors,
};
if (maxDepth != null) json['max_depth'] = maxDepth;
return json;
}