Artifacts.fromJson constructor

Artifacts.fromJson(
  1. Map json_
)

Implementation

Artifacts.fromJson(core.Map json_)
    : this(
        images: json_.containsKey('images')
            ? (json_['images'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        mavenArtifacts: json_.containsKey('mavenArtifacts')
            ? (json_['mavenArtifacts'] as core.List)
                .map((value) => MavenArtifact.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        npmPackages: json_.containsKey('npmPackages')
            ? (json_['npmPackages'] as core.List)
                .map((value) => NpmPackage.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        objects: json_.containsKey('objects')
            ? ArtifactObjects.fromJson(
                json_['objects'] as core.Map<core.String, core.dynamic>)
            : null,
        pythonPackages: json_.containsKey('pythonPackages')
            ? (json_['pythonPackages'] as core.List)
                .map((value) => PythonPackage.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
      );