Check.fromJson constructor

Check.fromJson(
  1. Map json_
)

Implementation

Check.fromJson(core.Map json_)
    : this(
        alwaysDeny: json_.containsKey('alwaysDeny')
            ? json_['alwaysDeny'] as core.bool
            : null,
        displayName: json_.containsKey('displayName')
            ? json_['displayName'] as core.String
            : null,
        imageAllowlist: json_.containsKey('imageAllowlist')
            ? ImageAllowlist.fromJson(json_['imageAllowlist']
                as core.Map<core.String, core.dynamic>)
            : null,
        imageFreshnessCheck: json_.containsKey('imageFreshnessCheck')
            ? ImageFreshnessCheck.fromJson(json_['imageFreshnessCheck']
                as core.Map<core.String, core.dynamic>)
            : null,
        sigstoreSignatureCheck: json_.containsKey('sigstoreSignatureCheck')
            ? SigstoreSignatureCheck.fromJson(json_['sigstoreSignatureCheck']
                as core.Map<core.String, core.dynamic>)
            : null,
        simpleSigningAttestationCheck:
            json_.containsKey('simpleSigningAttestationCheck')
                ? SimpleSigningAttestationCheck.fromJson(
                    json_['simpleSigningAttestationCheck']
                        as core.Map<core.String, core.dynamic>)
                : null,
        slsaCheck: json_.containsKey('slsaCheck')
            ? SlsaCheck.fromJson(
                json_['slsaCheck'] as core.Map<core.String, core.dynamic>)
            : null,
        trustedDirectoryCheck: json_.containsKey('trustedDirectoryCheck')
            ? TrustedDirectoryCheck.fromJson(json_['trustedDirectoryCheck']
                as core.Map<core.String, core.dynamic>)
            : null,
        vulnerabilityCheck: json_.containsKey('vulnerabilityCheck')
            ? VulnerabilityCheck.fromJson(json_['vulnerabilityCheck']
                as core.Map<core.String, core.dynamic>)
            : null,
      );