GetQueryResultsResponse.fromJson constructor
GetQueryResultsResponse.fromJson(
- Map<String, dynamic> json
)
Implementation
factory GetQueryResultsResponse.fromJson(Map<String, dynamic> json) {
return GetQueryResultsResponse(
results: (json['results'] as List?)
?.whereNotNull()
.map((e) => (e as List)
.whereNotNull()
.map((e) => ResultField.fromJson(e as Map<String, dynamic>))
.toList())
.toList(),
statistics: json['statistics'] != null
? QueryStatistics.fromJson(json['statistics'] as Map<String, dynamic>)
: null,
status: (json['status'] as String?)?.toQueryStatus(),
);
}