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