AwsCodeBuildProjectVpcConfig.fromJson constructor

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

Implementation

factory AwsCodeBuildProjectVpcConfig.fromJson(Map<String, dynamic> json) {
  return AwsCodeBuildProjectVpcConfig(
    securityGroupIds: (json['SecurityGroupIds'] as List?)
        ?.whereNotNull()
        .map((e) => e as String)
        .toList(),
    subnets: (json['Subnets'] as List?)
        ?.whereNotNull()
        .map((e) => e as String)
        .toList(),
    vpcId: json['VpcId'] as String?,
  );
}