TargetArtifact.fromJson constructor

TargetArtifact.fromJson(
  1. Map json_
)

Implementation

TargetArtifact.fromJson(core.Map json_)
    : this(
        artifactUri: json_.containsKey('artifactUri')
            ? json_['artifactUri'] as core.String
            : null,
        manifestPath: json_.containsKey('manifestPath')
            ? json_['manifestPath'] as core.String
            : null,
        phaseArtifacts: json_.containsKey('phaseArtifacts')
            ? (json_['phaseArtifacts'] as core.Map<core.String, core.dynamic>)
                .map(
                (key, value) => core.MapEntry(
                  key,
                  PhaseArtifact.fromJson(
                      value as core.Map<core.String, core.dynamic>),
                ),
              )
            : null,
        skaffoldConfigPath: json_.containsKey('skaffoldConfigPath')
            ? json_['skaffoldConfigPath'] as core.String
            : null,
      );