fromMap static method
override
Construct from Map.
Implementation
static GetStoryViewers? 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 story_id = _map['story_id']! as int;
var query = _map['query']! as String;
var only_contacts = _map['only_contacts']! as bool;
var prefer_with_reaction = _map['prefer_with_reaction']! as bool;
var offset = _map['offset']! as String;
var limit = _map['limit']! as int;
return GetStoryViewers(
extra: extra,
clientId: clientId,
story_id: story_id,
query: query,
only_contacts: only_contacts,
prefer_with_reaction: prefer_with_reaction,
offset: offset,
limit: limit,
);
}