Probe.fromJson constructor

Probe.fromJson(
  1. Map json_
)

Implementation

Probe.fromJson(core.Map json_)
    : this(
        exec: json_.containsKey('exec')
            ? ExecAction.fromJson(
                json_['exec'] as core.Map<core.String, core.dynamic>)
            : null,
        failureThreshold: json_.containsKey('failureThreshold')
            ? json_['failureThreshold'] as core.int
            : null,
        grpc: json_.containsKey('grpc')
            ? GRPCAction.fromJson(
                json_['grpc'] as core.Map<core.String, core.dynamic>)
            : null,
        httpGet: json_.containsKey('httpGet')
            ? HTTPGetAction.fromJson(
                json_['httpGet'] as core.Map<core.String, core.dynamic>)
            : null,
        initialDelaySeconds: json_.containsKey('initialDelaySeconds')
            ? json_['initialDelaySeconds'] as core.int
            : null,
        periodSeconds: json_.containsKey('periodSeconds')
            ? json_['periodSeconds'] as core.int
            : null,
        successThreshold: json_.containsKey('successThreshold')
            ? json_['successThreshold'] as core.int
            : null,
        tcpSocket: json_.containsKey('tcpSocket')
            ? TCPSocketAction.fromJson(
                json_['tcpSocket'] as core.Map<core.String, core.dynamic>)
            : null,
        timeoutSeconds: json_.containsKey('timeoutSeconds')
            ? json_['timeoutSeconds'] as core.int
            : null,
      );