LoadBalancerInfo.fromJson constructor
LoadBalancerInfo.fromJson(
- Map<String, dynamic> json
)
Implementation
factory LoadBalancerInfo.fromJson(Map<String, dynamic> json) {
return LoadBalancerInfo(
elbInfoList: (json['elbInfoList'] as List?)
?.whereNotNull()
.map((e) => ELBInfo.fromJson(e as Map<String, dynamic>))
.toList(),
targetGroupInfoList: (json['targetGroupInfoList'] as List?)
?.whereNotNull()
.map((e) => TargetGroupInfo.fromJson(e as Map<String, dynamic>))
.toList(),
targetGroupPairInfoList: (json['targetGroupPairInfoList'] as List?)
?.whereNotNull()
.map((e) => TargetGroupPairInfo.fromJson(e as Map<String, dynamic>))
.toList(),
);
}