AwsEc2InstanceViolation.fromJson constructor

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

Implementation

factory AwsEc2InstanceViolation.fromJson(Map<String, dynamic> json) {
  return AwsEc2InstanceViolation(
    awsEc2NetworkInterfaceViolations:
        (json['AwsEc2NetworkInterfaceViolations'] as List?)
            ?.whereNotNull()
            .map((e) => AwsEc2NetworkInterfaceViolation.fromJson(
                e as Map<String, dynamic>))
            .toList(),
    violationTarget: json['ViolationTarget'] as String?,
  );
}