EndpointGroup.fromJson constructor
EndpointGroup.fromJson(
- Map<String, dynamic> json
)
Implementation
factory EndpointGroup.fromJson(Map<String, dynamic> json) {
return EndpointGroup(
endpointDescriptions: (json['EndpointDescriptions'] as List?)
?.whereNotNull()
.map((e) => EndpointDescription.fromJson(e as Map<String, dynamic>))
.toList(),
endpointGroupArn: json['EndpointGroupArn'] as String?,
endpointGroupRegion: json['EndpointGroupRegion'] as String?,
healthCheckIntervalSeconds: json['HealthCheckIntervalSeconds'] as int?,
healthCheckPath: json['HealthCheckPath'] as String?,
healthCheckPort: json['HealthCheckPort'] as int?,
healthCheckProtocol:
(json['HealthCheckProtocol'] as String?)?.toHealthCheckProtocol(),
portOverrides: (json['PortOverrides'] as List?)
?.whereNotNull()
.map((e) => PortOverride.fromJson(e as Map<String, dynamic>))
.toList(),
thresholdCount: json['ThresholdCount'] as int?,
trafficDialPercentage: json['TrafficDialPercentage'] as double?,
);
}