toJson method
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,
};