ListHITsResponse.fromJson constructor

ListHITsResponse.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory ListHITsResponse.fromJson(Map<String, dynamic> json) {
  return ListHITsResponse(
    hITs: (json['HITs'] as List?)
        ?.whereNotNull()
        .map((e) => HIT.fromJson(e as Map<String, dynamic>))
        .toList(),
    nextToken: json['NextToken'] as String?,
    numResults: json['NumResults'] as int?,
  );
}