WorkerSettings.fromJson constructor

WorkerSettings.fromJson(
  1. Map _json
)

Implementation

WorkerSettings.fromJson(core.Map _json)
    : this(
        baseUrl: _json.containsKey('baseUrl')
            ? _json['baseUrl'] as core.String
            : null,
        reportingEnabled: _json.containsKey('reportingEnabled')
            ? _json['reportingEnabled'] as core.bool
            : null,
        servicePath: _json.containsKey('servicePath')
            ? _json['servicePath'] as core.String
            : null,
        shuffleServicePath: _json.containsKey('shuffleServicePath')
            ? _json['shuffleServicePath'] as core.String
            : null,
        tempStoragePrefix: _json.containsKey('tempStoragePrefix')
            ? _json['tempStoragePrefix'] as core.String
            : null,
        workerId: _json.containsKey('workerId')
            ? _json['workerId'] as core.String
            : null,
      );