fromMap static method
override
Construct from Map.
Implementation
static InputStoryContent? fromMap(Map<String, dynamic>? _map) {
if (_map == null) return null;
var _ = _map["@type"];
switch (_) {
case 'inputStoryContentPhoto':
return InputStoryContentPhoto.fromMap(_map);
case 'inputStoryContentVideo':
return InputStoryContentVideo.fromMap(_map);
case null:
default:
return null;
}
}