toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (alwaysDeny != null) 'alwaysDeny': alwaysDeny!,
      if (displayName != null) 'displayName': displayName!,
      if (imageAllowlist != null) 'imageAllowlist': imageAllowlist!,
      if (imageFreshnessCheck != null)
        'imageFreshnessCheck': imageFreshnessCheck!,
      if (sigstoreSignatureCheck != null)
        'sigstoreSignatureCheck': sigstoreSignatureCheck!,
      if (simpleSigningAttestationCheck != null)
        'simpleSigningAttestationCheck': simpleSigningAttestationCheck!,
      if (slsaCheck != null) 'slsaCheck': slsaCheck!,
      if (trustedDirectoryCheck != null)
        'trustedDirectoryCheck': trustedDirectoryCheck!,
      if (vulnerabilityCheck != null)
        'vulnerabilityCheck': vulnerabilityCheck!,
    };