GoogleCloudRunV2ExecutionTemplate.fromJson constructor

GoogleCloudRunV2ExecutionTemplate.fromJson(
  1. Map json_
)

Implementation

GoogleCloudRunV2ExecutionTemplate.fromJson(core.Map json_)
    : this(
        annotations: json_.containsKey('annotations')
            ? (json_['annotations'] as core.Map<core.String, core.dynamic>)
                .map(
                (key, value) => core.MapEntry(
                  key,
                  value as core.String,
                ),
              )
            : null,
        labels: json_.containsKey('labels')
            ? (json_['labels'] as core.Map<core.String, core.dynamic>).map(
                (key, value) => core.MapEntry(
                  key,
                  value as core.String,
                ),
              )
            : null,
        parallelism: json_.containsKey('parallelism')
            ? json_['parallelism'] as core.int
            : null,
        taskCount: json_.containsKey('taskCount')
            ? json_['taskCount'] as core.int
            : null,
        template: json_.containsKey('template')
            ? GoogleCloudRunV2TaskTemplate.fromJson(
                json_['template'] as core.Map<core.String, core.dynamic>)
            : null,
      );