BuildOccurrence.fromJson constructor

BuildOccurrence.fromJson(
  1. Map _json
)

Implementation

BuildOccurrence.fromJson(core.Map _json)
    : this(
        intotoProvenance: _json.containsKey('intotoProvenance')
            ? InTotoProvenance.fromJson(_json['intotoProvenance']
                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,
      );