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,
      );