fromJson static method
Implementation
static MessageReplyInfo? fromJson(Map<String, dynamic>? json) {
if (json == null) {
return null;
}
return MessageReplyInfo(
replyCount: (json['reply_count'] as int?) ?? 0,
recentReplierIds: List<MessageSender>.from(
tdListFromJson(json['recent_replier_ids'])
.map((item) => MessageSender.fromJson(tdMapFromJson(item)))
.whereType<MessageSender>(),
),
lastReadInboxMessageId: (json['last_read_inbox_message_id'] as int?) ?? 0,
lastReadOutboxMessageId:
(json['last_read_outbox_message_id'] as int?) ?? 0,
lastMessageId: (json['last_message_id'] as int?) ?? 0,
);
}