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(),
  );
}