HttpRouteHeaderMatch.fromJson constructor
HttpRouteHeaderMatch.fromJson(
- Map json_
Implementation
HttpRouteHeaderMatch.fromJson(core.Map json_)
: this(
exactMatch: json_.containsKey('exactMatch')
? json_['exactMatch'] as core.String
: null,
header: json_.containsKey('header')
? json_['header'] as core.String
: null,
invertMatch: json_.containsKey('invertMatch')
? json_['invertMatch'] as core.bool
: null,
prefixMatch: json_.containsKey('prefixMatch')
? json_['prefixMatch'] as core.String
: null,
presentMatch: json_.containsKey('presentMatch')
? json_['presentMatch'] as core.bool
: null,
rangeMatch: json_.containsKey('rangeMatch')
? HttpRouteHeaderMatchIntegerRange.fromJson(
json_['rangeMatch'] as core.Map<core.String, core.dynamic>)
: null,
regexMatch: json_.containsKey('regexMatch')
? json_['regexMatch'] as core.String
: null,
suffixMatch: json_.containsKey('suffixMatch')
? json_['suffixMatch'] as core.String
: null,
);