HttpHeaderMatch.fromJson constructor
HttpHeaderMatch.fromJson(
- Object? j
Implementation
factory HttpHeaderMatch.fromJson(Object? j) {
final json = j as Map<String, Object?>;
return HttpHeaderMatch(
exactMatch: switch (json['exactMatch']) {
null => null,
Object $1 => decodeString($1),
},
headerName: switch (json['headerName']) {
null => null,
Object $1 => decodeString($1),
},
invertMatch: switch (json['invertMatch']) {
null => null,
Object $1 => decodeBool($1),
},
prefixMatch: switch (json['prefixMatch']) {
null => null,
Object $1 => decodeString($1),
},
presentMatch: switch (json['presentMatch']) {
null => null,
Object $1 => decodeBool($1),
},
rangeMatch: switch (json['rangeMatch']) {
null => null,
Object $1 => Int64RangeMatch.fromJson($1),
},
regexMatch: switch (json['regexMatch']) {
null => null,
Object $1 => decodeString($1),
},
suffixMatch: switch (json['suffixMatch']) {
null => null,
Object $1 => decodeString($1),
},
);
}