GoogleCloudRunV2ResourceRequirements.fromJson constructor

GoogleCloudRunV2ResourceRequirements.fromJson(
  1. Map json_
)

Implementation

GoogleCloudRunV2ResourceRequirements.fromJson(core.Map json_)
    : this(
        cpuIdle: json_.containsKey('cpuIdle')
            ? json_['cpuIdle'] as core.bool
            : null,
        limits: json_.containsKey('limits')
            ? (json_['limits'] as core.Map<core.String, core.dynamic>).map(
                (key, value) => core.MapEntry(
                  key,
                  value as core.String,
                ),
              )
            : null,
        startupCpuBoost: json_.containsKey('startupCpuBoost')
            ? json_['startupCpuBoost'] as core.bool
            : null,
      );