AuthzPolicyAuthzRuleToRequestOperation.fromJson constructor

AuthzPolicyAuthzRuleToRequestOperation.fromJson(
  1. Map json_
)

Implementation

AuthzPolicyAuthzRuleToRequestOperation.fromJson(core.Map json_)
  : this(
      headerSet: json_.containsKey('headerSet')
          ? AuthzPolicyAuthzRuleToRequestOperationHeaderSet.fromJson(
              json_['headerSet'] as core.Map<core.String, core.dynamic>,
            )
          : null,
      hosts: (json_['hosts'] as core.List?)
          ?.map(
            (value) => AuthzPolicyAuthzRuleStringMatch.fromJson(
              value as core.Map<core.String, core.dynamic>,
            ),
          )
          .toList(),
      mcp: json_.containsKey('mcp')
          ? AuthzPolicyAuthzRuleToRequestOperationMCP.fromJson(
              json_['mcp'] as core.Map<core.String, core.dynamic>,
            )
          : null,
      methods: (json_['methods'] as core.List?)
          ?.map((value) => value as core.String)
          .toList(),
      paths: (json_['paths'] as core.List?)
          ?.map(
            (value) => AuthzPolicyAuthzRuleStringMatch.fromJson(
              value as core.Map<core.String, core.dynamic>,
            ),
          )
          .toList(),
      snis: (json_['snis'] as core.List?)
          ?.map(
            (value) => AuthzPolicyAuthzRuleStringMatch.fromJson(
              value as core.Map<core.String, core.dynamic>,
            ),
          )
          .toList(),
    );