Results.fromJson constructor

Results.fromJson(
  1. Map json_
)

Implementation

Results.fromJson(core.Map json_)
    : this(
        artifactManifest: json_.containsKey('artifactManifest')
            ? json_['artifactManifest'] as core.String
            : null,
        artifactTiming: json_.containsKey('artifactTiming')
            ? TimeSpan.fromJson(json_['artifactTiming']
                as core.Map<core.String, core.dynamic>)
            : null,
        buildStepImages: json_.containsKey('buildStepImages')
            ? (json_['buildStepImages'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        buildStepOutputs: json_.containsKey('buildStepOutputs')
            ? (json_['buildStepOutputs'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        images: json_.containsKey('images')
            ? (json_['images'] as core.List)
                .map((value) => BuiltImage.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        mavenArtifacts: json_.containsKey('mavenArtifacts')
            ? (json_['mavenArtifacts'] as core.List)
                .map((value) => UploadedMavenArtifact.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        npmPackages: json_.containsKey('npmPackages')
            ? (json_['npmPackages'] as core.List)
                .map((value) => UploadedNpmPackage.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        numArtifacts: json_.containsKey('numArtifacts')
            ? json_['numArtifacts'] as core.String
            : null,
        pythonPackages: json_.containsKey('pythonPackages')
            ? (json_['pythonPackages'] as core.List)
                .map((value) => UploadedPythonPackage.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
      );