VpcConfig.fromJson constructor

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

Implementation

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