SourceProvenance.fromJson constructor

SourceProvenance.fromJson(
  1. Map json_
)

Implementation

SourceProvenance.fromJson(core.Map json_)
    : this(
        gitUri: json_.containsKey('gitUri')
            ? json_['gitUri'] as core.String
            : null,
        resolvedRepoSource: json_.containsKey('resolvedRepoSource')
            ? RepoSource.fromJson(json_['resolvedRepoSource']
                as core.Map<core.String, core.dynamic>)
            : null,
        resolvedStorageSource: json_.containsKey('resolvedStorageSource')
            ? StorageSource.fromJson(json_['resolvedStorageSource']
                as core.Map<core.String, core.dynamic>)
            : null,
      );