StreamingSetupTask.fromJson constructor

StreamingSetupTask.fromJson(
  1. Map _json
)

Implementation

StreamingSetupTask.fromJson(core.Map _json)
    : this(
        drain:
            _json.containsKey('drain') ? _json['drain'] as core.bool : null,
        receiveWorkPort: _json.containsKey('receiveWorkPort')
            ? _json['receiveWorkPort'] as core.int
            : null,
        snapshotConfig: _json.containsKey('snapshotConfig')
            ? StreamingApplianceSnapshotConfig.fromJson(
                _json['snapshotConfig']
                    as core.Map<core.String, core.dynamic>)
            : null,
        streamingComputationTopology: _json
                .containsKey('streamingComputationTopology')
            ? TopologyConfig.fromJson(_json['streamingComputationTopology']
                as core.Map<core.String, core.dynamic>)
            : null,
        workerHarnessPort: _json.containsKey('workerHarnessPort')
            ? _json['workerHarnessPort'] as core.int
            : null,
      );