GoogleCloudRunV2Container.fromJson constructor

GoogleCloudRunV2Container.fromJson(
  1. Map json_
)

Implementation

GoogleCloudRunV2Container.fromJson(core.Map json_)
    : this(
        args: json_.containsKey('args')
            ? (json_['args'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        command: json_.containsKey('command')
            ? (json_['command'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        dependsOn: json_.containsKey('dependsOn')
            ? (json_['dependsOn'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        env: json_.containsKey('env')
            ? (json_['env'] as core.List)
                .map((value) => GoogleCloudRunV2EnvVar.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        image:
            json_.containsKey('image') ? json_['image'] as core.String : null,
        livenessProbe: json_.containsKey('livenessProbe')
            ? GoogleCloudRunV2Probe.fromJson(
                json_['livenessProbe'] as core.Map<core.String, core.dynamic>)
            : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        ports: json_.containsKey('ports')
            ? (json_['ports'] as core.List)
                .map((value) => GoogleCloudRunV2ContainerPort.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        resources: json_.containsKey('resources')
            ? GoogleCloudRunV2ResourceRequirements.fromJson(
                json_['resources'] as core.Map<core.String, core.dynamic>)
            : null,
        startupProbe: json_.containsKey('startupProbe')
            ? GoogleCloudRunV2Probe.fromJson(
                json_['startupProbe'] as core.Map<core.String, core.dynamic>)
            : null,
        volumeMounts: json_.containsKey('volumeMounts')
            ? (json_['volumeMounts'] as core.List)
                .map((value) => GoogleCloudRunV2VolumeMount.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        workingDir: json_.containsKey('workingDir')
            ? json_['workingDir'] as core.String
            : null,
      );