VPCConfig.fromJson constructor

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

Implementation

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