create static method

TextParseMode create({
  1. bool schemeUtilsIsSetDefaultData = false,
  2. String special_type = "textParseMode",
  3. bool special_is_json_scheme_class = true,
  4. String special_return_type = "textParseMode",
  5. TextParseModeMarkdown? text_parse_mode_markdown,
  6. TextParseModeHTML? text_parse_mode_h_t_m_l,
})
override

Generate By General Universe Script Dont edit by hand or anything manual

Implementation

static TextParseMode create({
  bool schemeUtilsIsSetDefaultData = false,
  String special_type = "textParseMode",
  bool special_is_json_scheme_class = true,
  String special_return_type = "textParseMode",
  TextParseModeMarkdown? text_parse_mode_markdown,
  TextParseModeHTML? text_parse_mode_h_t_m_l,
}) {
  // TextParseMode textParseMode = TextParseMode({
  final Map textParseMode_data_create_json = {
    "@type": special_type,
    "@is_json_scheme_class": special_is_json_scheme_class,
    "@return_type": special_return_type,
    "text_parse_mode_markdown": (text_parse_mode_markdown != null) ? text_parse_mode_markdown.toJson() : null,
    "text_parse_mode_h_t_m_l": (text_parse_mode_h_t_m_l != null) ? text_parse_mode_h_t_m_l.toJson() : null,
  };

  textParseMode_data_create_json.removeWhere((key, value) => value == null);

  if (schemeUtilsIsSetDefaultData) {
    defaultData.forEach((key, value) {
      if (textParseMode_data_create_json.containsKey(key) == false) {
        textParseMode_data_create_json[key] = value;
      }
    });
  }
  return TextParseMode(textParseMode_data_create_json);
}