SecurityPolicyRuleNetworkMatcherUserDefinedFieldMatch.fromJson constructor
SecurityPolicyRuleNetworkMatcherUserDefinedFieldMatch.fromJson(
- Object? j
Implementation
factory SecurityPolicyRuleNetworkMatcherUserDefinedFieldMatch.fromJson(
Object? j,
) {
final json = j as Map<String, Object?>;
return SecurityPolicyRuleNetworkMatcherUserDefinedFieldMatch(
name: switch (json['name']) {
null => null,
Object $1 => decodeString($1),
},
values: switch (json['values']) {
null => [],
List<Object?> $1 => [for (final i in $1) decodeString(i)],
_ => throw const FormatException('"values" is not a list'),
},
);
}