AdmissionRule.fromJson constructor

AdmissionRule.fromJson(
  1. Map json_
)

Implementation

AdmissionRule.fromJson(core.Map json_)
    : this(
        enforcementMode: json_.containsKey('enforcementMode')
            ? json_['enforcementMode'] as core.String
            : null,
        evaluationMode: json_.containsKey('evaluationMode')
            ? json_['evaluationMode'] as core.String
            : null,
        requireAttestationsBy: json_.containsKey('requireAttestationsBy')
            ? (json_['requireAttestationsBy'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
      );