BuildOccurrence.fromJson constructor

BuildOccurrence.fromJson(
  1. Map json_
)

Implementation

BuildOccurrence.fromJson(core.Map json_)
    : this(
        inTotoSlsaProvenanceV1: json_.containsKey('inTotoSlsaProvenanceV1')
            ? InTotoSlsaProvenanceV1.fromJson(json_['inTotoSlsaProvenanceV1']
                as core.Map<core.String, core.dynamic>)
            : null,
        intotoProvenance: json_.containsKey('intotoProvenance')
            ? InTotoProvenance.fromJson(json_['intotoProvenance']
                as core.Map<core.String, core.dynamic>)
            : null,
        intotoStatement: json_.containsKey('intotoStatement')
            ? InTotoStatement.fromJson(json_['intotoStatement']
                as core.Map<core.String, core.dynamic>)
            : null,
        provenance: json_.containsKey('provenance')
            ? BuildProvenance.fromJson(
                json_['provenance'] as core.Map<core.String, core.dynamic>)
            : null,
        provenanceBytes: json_.containsKey('provenanceBytes')
            ? json_['provenanceBytes'] as core.String
            : null,
      );