toJson method Null safety
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
json.addAll({
'hits': hits?.map((f) => f).toList(),
'misses': misses?.map((f) => f).toList(),
});
return json;
}
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
json.addAll({
'hits': hits?.map((f) => f).toList(),
'misses': misses?.map((f) => f).toList(),
});
return json;
}