AwsVpcConfiguration.fromJson constructor

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

Implementation

factory AwsVpcConfiguration.fromJson(Map<String, dynamic> json) {
  return AwsVpcConfiguration(
    subnets: (json['Subnets'] as List)
        .whereNotNull()
        .map((e) => e as String)
        .toList(),
    assignPublicIp: (json['AssignPublicIp'] as String?)?.toAssignPublicIp(),
    securityGroups: (json['SecurityGroups'] as List?)
        ?.whereNotNull()
        .map((e) => e as String)
        .toList(),
  );
}