fromMap static method

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

Construct from Map.

Implementation

static GetBlockedMessageSenders? 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 block_list = BlockList.fromMap(_map['block_list'])!;
  var offset = _map['offset']! as int;
  var limit = _map['limit']! as int;
  return GetBlockedMessageSenders(
    extra: extra,
    clientId: clientId,
    block_list: block_list,
    offset: offset,
    limit: limit,
  );
}