toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (failureThreshold != null) 'failureThreshold': failureThreshold!,
      if (grpc != null) 'grpc': grpc!,
      if (httpGet != null) 'httpGet': httpGet!,
      if (initialDelaySeconds != null)
        'initialDelaySeconds': initialDelaySeconds!,
      if (periodSeconds != null) 'periodSeconds': periodSeconds!,
      if (tcpSocket != null) 'tcpSocket': tcpSocket!,
      if (timeoutSeconds != null) 'timeoutSeconds': timeoutSeconds!,
    };