AwsVPCSecurityGroupViolation.fromJson constructor
AwsVPCSecurityGroupViolation.fromJson(
- Map<String, dynamic> json
)
Implementation
factory AwsVPCSecurityGroupViolation.fromJson(Map<String, dynamic> json) {
return AwsVPCSecurityGroupViolation(
partialMatches: (json['PartialMatches'] as List?)
?.whereNotNull()
.map((e) => PartialMatch.fromJson(e as Map<String, dynamic>))
.toList(),
possibleSecurityGroupRemediationActions:
(json['PossibleSecurityGroupRemediationActions'] as List?)
?.whereNotNull()
.map((e) => SecurityGroupRemediationAction.fromJson(
e as Map<String, dynamic>))
.toList(),
violationTarget: json['ViolationTarget'] as String?,
violationTargetDescription: json['ViolationTargetDescription'] as String?,
);
}