SearchResponse.fromJson constructor
Implementation
factory SearchResponse.fromJson(Map<String, dynamic> json) {
return SearchResponse(
nextToken: json['NextToken'] as String?,
results: (json['Results'] as List?)
?.whereNotNull()
.map((e) => SearchRecord.fromJson(e as Map<String, dynamic>))
.toList(),
);
}