fromMap static method
override
Construct from Map.
Implementation
static StoryContent? fromMap(Map<String, dynamic>? _map) {
if (_map == null) return null;
var _ = _map["@type"];
switch (_) {
case 'storyContentVideo':
return StoryContentVideo.fromMap(_map);
case 'storyContentUnsupported':
return StoryContentUnsupported.fromMap(_map);
case 'storyContentPhoto':
return StoryContentPhoto.fromMap(_map);
case null:
default:
return null;
}
}