fromMap static method
override
Construct from Map.
Implementation
static StoryInteractionInfo? 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 view_count = _map['view_count']! as int;
var forward_count = _map['forward_count']! as int;
var reaction_count = _map['reaction_count']! as int;
var recent_viewer_user_ids = List<int>.from(
(_map["recent_viewer_user_ids"] ?? []).map(
(e) => e as int,
),
);
return StoryInteractionInfo(
extra: extra,
clientId: clientId,
view_count: view_count,
forward_count: forward_count,
reaction_count: reaction_count,
recent_viewer_user_ids: recent_viewer_user_ids,
);
}