fromMap static method

ChatStatisticsMessageSenderInfo? fromMap(
  1. Map<String, dynamic>? _map
)
override

Construct from Map.

Implementation

static ChatStatisticsMessageSenderInfo? 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 sent_message_count = _map['sent_message_count']! as int;
  var average_character_count = _map['average_character_count']! as int;
  return ChatStatisticsMessageSenderInfo(
    extra: extra,
    clientId: clientId,
    user_id: user_id,
    sent_message_count: sent_message_count,
    average_character_count: average_character_count,
  );
}