TrustedAdvisorCheckResult.fromJson constructor

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

Implementation

factory TrustedAdvisorCheckResult.fromJson(Map<String, dynamic> json) {
  return TrustedAdvisorCheckResult(
    categorySpecificSummary: TrustedAdvisorCategorySpecificSummary.fromJson(
        json['categorySpecificSummary'] as Map<String, dynamic>),
    checkId: json['checkId'] as String,
    flaggedResources: (json['flaggedResources'] as List)
        .whereNotNull()
        .map((e) =>
            TrustedAdvisorResourceDetail.fromJson(e as Map<String, dynamic>))
        .toList(),
    resourcesSummary: TrustedAdvisorResourcesSummary.fromJson(
        json['resourcesSummary'] as Map<String, dynamic>),
    status: json['status'] as String,
    timestamp: json['timestamp'] as String,
  );
}