EndpointDescription.fromJson constructor

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

Implementation

factory EndpointDescription.fromJson(Map<String, dynamic> json) {
  return EndpointDescription(
    clientIPPreservationEnabled: json['ClientIPPreservationEnabled'] as bool?,
    endpointId: json['EndpointId'] as String?,
    healthReason: json['HealthReason'] as String?,
    healthState: (json['HealthState'] as String?)?.toHealthState(),
    weight: json['Weight'] as int?,
  );
}