ListResourceComplianceSummariesResult.fromJson constructor

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

Implementation

factory ListResourceComplianceSummariesResult.fromJson(
    Map<String, dynamic> json) {
  return ListResourceComplianceSummariesResult(
    nextToken: json['NextToken'] as String?,
    resourceComplianceSummaryItems: (json['ResourceComplianceSummaryItems']
            as List?)
        ?.whereNotNull()
        .map((e) =>
            ResourceComplianceSummaryItem.fromJson(e as Map<String, dynamic>))
        .toList(),
  );
}