toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final healthyThreshold = this.healthyThreshold;
  final interval = this.interval;
  final target = this.target;
  final timeout = this.timeout;
  final unhealthyThreshold = this.unhealthyThreshold;
  return {
    if (healthyThreshold != null) 'HealthyThreshold': healthyThreshold,
    if (interval != null) 'Interval': interval,
    if (target != null) 'Target': target,
    if (timeout != null) 'Timeout': timeout,
    if (unhealthyThreshold != null) 'UnhealthyThreshold': unhealthyThreshold,
  };
}