GetIamPolicyFirewallPolicyRequest.fromJson constructor

GetIamPolicyFirewallPolicyRequest.fromJson(
  1. Object? j
)

Implementation

factory GetIamPolicyFirewallPolicyRequest.fromJson(Object? j) {
  final json = j as Map<String, Object?>;
  return GetIamPolicyFirewallPolicyRequest(
    optionsRequestedPolicyVersion:
        switch (json['optionsRequestedPolicyVersion']) {
          null => null,
          Object $1 => decodeInt($1),
        },
    resource: switch (json['resource']) {
      null => '',
      Object $1 => decodeString($1),
    },
  );
}