fromMap static method
override
Construct from Map.
Implementation
static SearchMessages? 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 chat_list = ChatList.fromMap(_map['chat_list']);
var query = _map['query']! as String;
var offset = _map['offset']! as String;
var limit = _map['limit']! as int;
var filter = SearchMessagesFilter.fromMap(_map['filter']);
var min_date = _map['min_date']! as int;
var max_date = _map['max_date']! as int;
return SearchMessages(
extra: extra,
clientId: clientId,
chat_list: chat_list,
query: query,
offset: offset,
limit: limit,
filter: filter,
min_date: min_date,
max_date: max_date,
);
}