AwsElbLoadBalancerListenerDescription.fromJson constructor

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

Implementation

factory AwsElbLoadBalancerListenerDescription.fromJson(
    Map<String, dynamic> json) {
  return AwsElbLoadBalancerListenerDescription(
    listener: json['Listener'] != null
        ? AwsElbLoadBalancerListener.fromJson(
            json['Listener'] as Map<String, dynamic>)
        : null,
    policyNames: (json['PolicyNames'] as List?)
        ?.whereNotNull()
        .map((e) => e as String)
        .toList(),
  );
}