SourceProvenance.fromJson constructor

SourceProvenance.fromJson(
  1. Map json_
)

Implementation

SourceProvenance.fromJson(core.Map json_)
    : this(
        fileHashes: json_.containsKey('fileHashes')
            ? (json_['fileHashes'] as core.Map<core.String, core.dynamic>)
                .map(
                (key, value) => core.MapEntry(
                  key,
                  FileHashes.fromJson(
                      value as core.Map<core.String, core.dynamic>),
                ),
              )
            : null,
        resolvedConnectedRepository:
            json_.containsKey('resolvedConnectedRepository')
                ? ConnectedRepository.fromJson(
                    json_['resolvedConnectedRepository']
                        as core.Map<core.String, core.dynamic>)
                : null,
        resolvedGitSource: json_.containsKey('resolvedGitSource')
            ? GitSource.fromJson(json_['resolvedGitSource']
                as core.Map<core.String, core.dynamic>)
            : 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,
        resolvedStorageSourceManifest:
            json_.containsKey('resolvedStorageSourceManifest')
                ? StorageSourceManifest.fromJson(
                    json_['resolvedStorageSourceManifest']
                        as core.Map<core.String, core.dynamic>)
                : null,
      );