GoogleCloudMlV1ContainerSpec.fromJson constructor

GoogleCloudMlV1ContainerSpec.fromJson(
  1. Map json_
)

Implementation

GoogleCloudMlV1ContainerSpec.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,
        env: json_.containsKey('env')
            ? (json_['env'] as core.List)
                .map((value) => GoogleCloudMlV1EnvVar.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        image:
            json_.containsKey('image') ? json_['image'] as core.String : null,
        ports: json_.containsKey('ports')
            ? (json_['ports'] as core.List)
                .map((value) => GoogleCloudMlV1ContainerPort.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
      );