InTotoSlsaProvenanceV1.fromJson constructor
InTotoSlsaProvenanceV1.fromJson(
- Map json_
Implementation
InTotoSlsaProvenanceV1.fromJson(core.Map json_)
: this(
P_type:
json_.containsKey('_type') ? json_['_type'] as core.String : null,
predicate: json_.containsKey('predicate')
? SlsaProvenanceV1.fromJson(
json_['predicate'] as core.Map<core.String, core.dynamic>)
: null,
predicateType: json_.containsKey('predicateType')
? json_['predicateType'] as core.String
: null,
subject: json_.containsKey('subject')
? (json_['subject'] as core.List)
.map((value) => Subject.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
);