fromMap static method
override
Construct from Map.
Implementation
static StoryViewer? fromMap(Map<String, dynamic>? _map) {
if (_map == null) return null;
var _ = _map["@type"];
if (_ != CONSTRUCTOR) return null;
var extra = _map['@extra'];
var clientId = _map['@clientId'];
var user_id = _map['user_id']! as int;
var view_date = _map['view_date']! as int;
var block_list = BlockList.fromMap(_map['block_list']);
var chosen_reaction_type =
ReactionType.fromMap(_map['chosen_reaction_type']);
return StoryViewer(
extra: extra,
clientId: clientId,
user_id: user_id,
view_date: view_date,
block_list: block_list,
chosen_reaction_type: chosen_reaction_type,
);
}