toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final healthyThreshold = this.healthyThreshold;
  final intervalSeconds = this.intervalSeconds;
  final path = this.path;
  final successCodes = this.successCodes;
  final timeoutSeconds = this.timeoutSeconds;
  final unhealthyThreshold = this.unhealthyThreshold;
  return {
    if (healthyThreshold != null) 'healthyThreshold': healthyThreshold,
    if (intervalSeconds != null) 'intervalSeconds': intervalSeconds,
    if (path != null) 'path': path,
    if (successCodes != null) 'successCodes': successCodes,
    if (timeoutSeconds != null) 'timeoutSeconds': timeoutSeconds,
    if (unhealthyThreshold != null) 'unhealthyThreshold': unhealthyThreshold,
  };
}