AwsLambdaFunctionVpcConfig.fromJson constructor

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

Implementation

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