SlsaProvenance.fromJson constructor
SlsaProvenance.fromJson(
- Map json_
Implementation
SlsaProvenance.fromJson(core.Map json_)
: this(
builder: json_.containsKey('builder')
? SlsaBuilder.fromJson(
json_['builder'] as core.Map<core.String, core.dynamic>)
: null,
materials: json_.containsKey('materials')
? (json_['materials'] as core.List)
.map((value) => Material.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
metadata: json_.containsKey('metadata')
? SlsaMetadata.fromJson(
json_['metadata'] as core.Map<core.String, core.dynamic>)
: null,
recipe: json_.containsKey('recipe')
? SlsaRecipe.fromJson(
json_['recipe'] as core.Map<core.String, core.dynamic>)
: null,
);