GetLoadBalancersResult.fromJson constructor

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

Implementation

factory GetLoadBalancersResult.fromJson(Map<String, dynamic> json) {
  return GetLoadBalancersResult(
    loadBalancers: (json['loadBalancers'] as List?)
        ?.whereNotNull()
        .map((e) => LoadBalancer.fromJson(e as Map<String, dynamic>))
        .toList(),
    nextPageToken: json['nextPageToken'] as String?,
  );
}