fromMap static method
override
Construct from Map.
Implementation
static MessageReplyInfo? 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 reply_count = _map['reply_count']! as int;
var recent_replier_ids = List<MessageSender>.from(
(_map["recent_replier_ids"] ?? []).map(
(e) => MessageSender.fromMap(e),
),
);
var last_read_inbox_message_id = _map['last_read_inbox_message_id']! as int;
var last_read_outbox_message_id =
_map['last_read_outbox_message_id']! as int;
var last_message_id = _map['last_message_id']! as int;
return MessageReplyInfo(
extra: extra,
clientId: clientId,
reply_count: reply_count,
recent_replier_ids: recent_replier_ids,
last_read_inbox_message_id: last_read_inbox_message_id,
last_read_outbox_message_id: last_read_outbox_message_id,
last_message_id: last_message_id,
);
}