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