Ec2Config.fromJson constructor

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

Implementation

factory Ec2Config.fromJson(Map<String, dynamic> json) {
  return Ec2Config(
    securityGroupArns: (json['SecurityGroupArns'] as List)
        .whereNotNull()
        .map((e) => e as String)
        .toList(),
    subnetArn: json['SubnetArn'] as String,
  );
}