ElasticLoadBalancer.fromJson constructor

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

Implementation

factory ElasticLoadBalancer.fromJson(Map<String, dynamic> json) {
  return ElasticLoadBalancer(
    availabilityZones: (json['AvailabilityZones'] as List?)
        ?.whereNotNull()
        .map((e) => e as String)
        .toList(),
    dnsName: json['DnsName'] as String?,
    ec2InstanceIds: (json['Ec2InstanceIds'] as List?)
        ?.whereNotNull()
        .map((e) => e as String)
        .toList(),
    elasticLoadBalancerName: json['ElasticLoadBalancerName'] as String?,
    layerId: json['LayerId'] as String?,
    region: json['Region'] as String?,
    stackId: json['StackId'] as String?,
    subnetIds: (json['SubnetIds'] as List?)
        ?.whereNotNull()
        .map((e) => e as String)
        .toList(),
    vpcId: json['VpcId'] as String?,
  );
}