TextParseMode.fromJson constructor
a TextParseMode return type can be :
Implementation
factory TextParseMode.fromJson(Map<String, dynamic> json) {
switch(json["@type"]) {
case TextParseModeMarkdown.CONSTRUCTOR:
return TextParseModeMarkdown.fromJson(json);
case TextParseModeHTML.CONSTRUCTOR:
return TextParseModeHTML.fromJson(json);
default:
return const TextParseMode();
}
}