TextParseMode.fromJson constructor

TextParseMode.fromJson(
  1. Map<String, dynamic> json
)

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();
  }
}