AnalyzerSummary.fromJson constructor
AnalyzerSummary.fromJson(
- Map<String, dynamic> json
)
Implementation
factory AnalyzerSummary.fromJson(Map<String, dynamic> json) {
return AnalyzerSummary(
arn: json['arn'] as String,
createdAt: nonNullableTimeStampFromJson(json['createdAt'] as Object),
name: json['name'] as String,
status: (json['status'] as String).toAnalyzerStatus(),
type: (json['type'] as String).toType(),
lastResourceAnalyzed: json['lastResourceAnalyzed'] as String?,
lastResourceAnalyzedAt: timeStampFromJson(json['lastResourceAnalyzedAt']),
statusReason: json['statusReason'] != null
? StatusReason.fromJson(json['statusReason'] as Map<String, dynamic>)
: null,
tags: (json['tags'] as Map<String, dynamic>?)
?.map((k, e) => MapEntry(k, e as String)),
);
}