ScalingConfig.fromJson constructor

ScalingConfig.fromJson(
  1. Map json_
)

Implementation

ScalingConfig.fromJson(core.Map json_)
    : this(
        instanceSize: json_.containsKey('instanceSize')
            ? json_['instanceSize'] as core.String
            : null,
        scalingFactor: json_.containsKey('scalingFactor')
            ? (json_['scalingFactor'] as core.num).toDouble()
            : null,
      );