fromMap static method
override
Construct from Map.
Implementation
static SearchStringsByPrefix? 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 strings = List<String>.from(
(_map["strings"] ?? []).map(
(e) => e as String,
),
);
var query = _map['query']! as String;
var limit = _map['limit']! as int;
var return_none_for_empty_query =
_map['return_none_for_empty_query']! as bool;
return SearchStringsByPrefix(
extra: extra,
clientId: clientId,
strings: strings,
query: query,
limit: limit,
return_none_for_empty_query: return_none_for_empty_query,
);
}