DescribeFindingsResponse.fromJson constructor

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

Implementation

factory DescribeFindingsResponse.fromJson(Map<String, dynamic> json) {
  return DescribeFindingsResponse(
    failedItems: (json['failedItems'] as Map<String, dynamic>).map((k, e) =>
        MapEntry(k, FailedItemDetails.fromJson(e as Map<String, dynamic>))),
    findings: (json['findings'] as List)
        .whereNotNull()
        .map((e) => Finding.fromJson(e as Map<String, dynamic>))
        .toList(),
  );
}