VerificationRule.fromJson constructor

VerificationRule.fromJson(
  1. Map json_
)

Implementation

VerificationRule.fromJson(core.Map json_)
    : this(
        attestationSource: json_.containsKey('attestationSource')
            ? AttestationSource.fromJson(json_['attestationSource']
                as core.Map<core.String, core.dynamic>)
            : null,
        configBasedBuildRequired:
            json_.containsKey('configBasedBuildRequired')
                ? json_['configBasedBuildRequired'] as core.bool
                : null,
        trustedBuilder: json_.containsKey('trustedBuilder')
            ? json_['trustedBuilder'] as core.String
            : null,
        trustedSourceRepoPatterns:
            json_.containsKey('trustedSourceRepoPatterns')
                ? (json_['trustedSourceRepoPatterns'] as core.List)
                    .map((value) => value as core.String)
                    .toList()
                : null,
      );