PatchRuleNetworkFirewallPolicyRequest.fromJson constructor
PatchRuleNetworkFirewallPolicyRequest.fromJson(
- Object? j
Implementation
factory PatchRuleNetworkFirewallPolicyRequest.fromJson(Object? j) {
final json = j as Map<String, Object?>;
return PatchRuleNetworkFirewallPolicyRequest(
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),
},
project: switch (json['project']) {
null => '',
Object $1 => decodeString($1),
},
requestId: switch (json['requestId']) {
null => null,
Object $1 => decodeString($1),
},
);
}