Hits.fromJson constructor
Implementation
factory Hits.fromJson(Map<String, dynamic> json) {
return Hits(
cursor: json['cursor'] as String?,
found: json['found'] as int?,
hit: (json['hit'] as List?)
?.whereNotNull()
.map((e) => Hit.fromJson(e as Map<String, dynamic>))
.toList(),
start: json['start'] as int?,
);
}