fromJson static method
Inherited by: TextParseModeHTML TextParseModeMarkdown
Implementation
static TextParseMode? fromJson(Map<String, dynamic>? json) {
if (json == null) {
return null;
}
switch (json['@type']) {
case TextParseModeHTML.constructor:
return TextParseModeHTML.fromJson(json);
case TextParseModeMarkdown.constructor:
return TextParseModeMarkdown.fromJson(json);
default:
return null;
}
}