GoogleCloudRunV2TaskTemplate.fromJson constructor

GoogleCloudRunV2TaskTemplate.fromJson(
  1. Map json_
)

Implementation

GoogleCloudRunV2TaskTemplate.fromJson(core.Map json_)
    : this(
        containers: json_.containsKey('containers')
            ? (json_['containers'] as core.List)
                .map((value) => GoogleCloudRunV2Container.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        encryptionKey: json_.containsKey('encryptionKey')
            ? json_['encryptionKey'] as core.String
            : null,
        executionEnvironment: json_.containsKey('executionEnvironment')
            ? json_['executionEnvironment'] as core.String
            : null,
        maxRetries: json_.containsKey('maxRetries')
            ? json_['maxRetries'] as core.int
            : null,
        serviceAccount: json_.containsKey('serviceAccount')
            ? json_['serviceAccount'] as core.String
            : null,
        timeout: json_.containsKey('timeout')
            ? json_['timeout'] as core.String
            : null,
        volumes: json_.containsKey('volumes')
            ? (json_['volumes'] as core.List)
                .map((value) => GoogleCloudRunV2Volume.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        vpcAccess: json_.containsKey('vpcAccess')
            ? GoogleCloudRunV2VpcAccess.fromJson(
                json_['vpcAccess'] as core.Map<core.String, core.dynamic>)
            : null,
      );