FirewallPolicyAssociation.fromJson constructor

FirewallPolicyAssociation.fromJson(
  1. Object? j
)

Implementation

factory FirewallPolicyAssociation.fromJson(Object? j) {
  final json = j as Map<String, Object?>;
  return FirewallPolicyAssociation(
    attachmentTarget: switch (json['attachmentTarget']) {
      null => null,
      Object $1 => decodeString($1),
    },
    displayName: switch (json['displayName']) {
      null => null,
      Object $1 => decodeString($1),
    },
    firewallPolicyId: switch (json['firewallPolicyId']) {
      null => null,
      Object $1 => decodeString($1),
    },
    name: switch (json['name']) {
      null => null,
      Object $1 => decodeString($1),
    },
    shortName: switch (json['shortName']) {
      null => null,
      Object $1 => decodeString($1),
    },
  );
}