DescribeAssessmentTemplatesResponse.fromJson constructor
DescribeAssessmentTemplatesResponse.fromJson(
- Map<String, dynamic> json
)
Implementation
factory DescribeAssessmentTemplatesResponse.fromJson(
Map<String, dynamic> json) {
return DescribeAssessmentTemplatesResponse(
assessmentTemplates: (json['assessmentTemplates'] as List)
.whereNotNull()
.map((e) => AssessmentTemplate.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>))),
);
}