fromMap static method
override
Construct from Map.
Implementation
static TextParseMode? fromMap(Map<String, dynamic>? _map) {
if (_map == null) return null;
var _ = _map["@type"];
switch (_) {
case 'textParseModeMarkdown':
return TextParseModeMarkdown.fromMap(_map);
case 'textParseModeHTML':
return TextParseModeHTML.fromMap(_map);
case null:
default:
return null;
}
}