SBOMReferenceOccurrence.fromJson constructor

SBOMReferenceOccurrence.fromJson(
  1. Map json_
)

Implementation

SBOMReferenceOccurrence.fromJson(core.Map json_)
    : this(
        payload: json_.containsKey('payload')
            ? SbomReferenceIntotoPayload.fromJson(
                json_['payload'] as core.Map<core.String, core.dynamic>)
            : null,
        payloadType: json_.containsKey('payloadType')
            ? json_['payloadType'] as core.String
            : null,
        signatures: json_.containsKey('signatures')
            ? (json_['signatures'] as core.List)
                .map((value) => EnvelopeSignature.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
      );