PatchRuleFirewallPolicyRequest.fromJson constructor
PatchRuleFirewallPolicyRequest.fromJson(
- Object? j
Implementation
factory PatchRuleFirewallPolicyRequest.fromJson(Object? j) {
final json = j as Map<String, Object?>;
return PatchRuleFirewallPolicyRequest(
firewallPolicy: switch (json['firewallPolicy']) {
null => '',
Object $1 => decodeString($1),
},
firewallPolicyRuleResource: switch (json['firewallPolicyRuleResource']) {
null => null,
Object $1 => FirewallPolicyRule.fromJson($1),
},
priority: switch (json['priority']) {
null => null,
Object $1 => decodeInt($1),
},
requestId: switch (json['requestId']) {
null => null,
Object $1 => decodeString($1),
},
);
}