AwsEc2NetworkInterfaceDetails.fromJson constructor

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

Implementation

factory AwsEc2NetworkInterfaceDetails.fromJson(Map<String, dynamic> json) {
  return AwsEc2NetworkInterfaceDetails(
    attachment: json['Attachment'] != null
        ? AwsEc2NetworkInterfaceAttachment.fromJson(
            json['Attachment'] as Map<String, dynamic>)
        : null,
    networkInterfaceId: json['NetworkInterfaceId'] as String?,
    securityGroups: (json['SecurityGroups'] as List?)
        ?.whereNotNull()
        .map((e) => AwsEc2NetworkInterfaceSecurityGroup.fromJson(
            e as Map<String, dynamic>))
        .toList(),
    sourceDestCheck: json['SourceDestCheck'] as bool?,
  );
}