Source.fromJson constructor
Source.fromJson(
- Map json_
Implementation
Source.fromJson(core.Map json_)
: this(
additionalContexts: json_.containsKey('additionalContexts')
? (json_['additionalContexts'] as core.List)
.map((value) => SourceContext.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
artifactStorageSourceUri:
json_.containsKey('artifactStorageSourceUri')
? json_['artifactStorageSourceUri'] as core.String
: null,
context: json_.containsKey('context')
? SourceContext.fromJson(
json_['context'] as core.Map<core.String, core.dynamic>)
: null,
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,
);