toJson method

  1. @override
Object toJson()

Implementation

@override
Object toJson() => {
  'exec': ?exec?.toJson(),
  'httpGet': ?httpGet?.toJson(),
  'grpc': ?grpc?.toJson(),
  'tcpSocket': ?tcpSocket?.toJson(),
  if (periodSeconds.isNotDefault) 'periodSeconds': periodSeconds,
  if (timeoutSeconds.isNotDefault) 'timeoutSeconds': timeoutSeconds,
  if (failureThreshold.isNotDefault) 'failureThreshold': failureThreshold,
  if (successThreshold.isNotDefault) 'successThreshold': successThreshold,
  if (initialDelaySeconds.isNotDefault)
    'initialDelaySeconds': initialDelaySeconds,
};