DescribeAssessmentRunsResponse.fromJson constructor
DescribeAssessmentRunsResponse.fromJson(
- Map<String, dynamic> json
)
Implementation
factory DescribeAssessmentRunsResponse.fromJson(Map<String, dynamic> json) {
return DescribeAssessmentRunsResponse(
assessmentRuns: (json['assessmentRuns'] as List)
.whereNotNull()
.map((e) => AssessmentRun.fromJson(e as Map<String, dynamic>))
.toList(),
failedItems: (json['failedItems'] as Map<String, dynamic>).map((k, e) =>
MapEntry(k, FailedItemDetails.fromJson(e as Map<String, dynamic>))),
);
}