toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final deploymentCircuitBreaker = this.deploymentCircuitBreaker;
  final maximumPercent = this.maximumPercent;
  final minimumHealthyPercent = this.minimumHealthyPercent;
  return {
    if (deploymentCircuitBreaker != null)
      'deploymentCircuitBreaker': deploymentCircuitBreaker,
    if (maximumPercent != null) 'maximumPercent': maximumPercent,
    if (minimumHealthyPercent != null)
      'minimumHealthyPercent': minimumHealthyPercent,
  };
}