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(),
    vpcId: json['vpcId'] as String?,
  );
}