StandardSchedulerSettings.fromJson constructor

StandardSchedulerSettings.fromJson(
  1. Map json_
)

Implementation

StandardSchedulerSettings.fromJson(core.Map json_)
    : this(
        maxInstances: json_.containsKey('maxInstances')
            ? json_['maxInstances'] as core.int
            : null,
        minInstances: json_.containsKey('minInstances')
            ? json_['minInstances'] as core.int
            : null,
        targetCpuUtilization: json_.containsKey('targetCpuUtilization')
            ? (json_['targetCpuUtilization'] as core.num).toDouble()
            : null,
        targetThroughputUtilization: json_
                .containsKey('targetThroughputUtilization')
            ? (json_['targetThroughputUtilization'] as core.num).toDouble()
            : null,
      );