InTotoStatement.fromJson constructor
InTotoStatement.fromJson(
- Map json_
Implementation
InTotoStatement.fromJson(core.Map json_)
: this(
P_type:
json_.containsKey('_type') ? json_['_type'] as core.String : null,
predicateType: json_.containsKey('predicateType')
? json_['predicateType'] as core.String
: null,
provenance: json_.containsKey('provenance')
? InTotoProvenance.fromJson(
json_['provenance'] as core.Map<core.String, core.dynamic>)
: null,
slsaProvenance: json_.containsKey('slsaProvenance')
? SlsaProvenance.fromJson(json_['slsaProvenance']
as core.Map<core.String, core.dynamic>)
: null,
slsaProvenanceZeroTwo: json_.containsKey('slsaProvenanceZeroTwo')
? SlsaProvenanceZeroTwo.fromJson(json_['slsaProvenanceZeroTwo']
as core.Map<core.String, core.dynamic>)
: null,
subject: json_.containsKey('subject')
? (json_['subject'] as core.List)
.map((value) => Subject.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
);