PathMatcher.fromJson constructor
PathMatcher.fromJson(
- Map json_
Implementation
PathMatcher.fromJson(core.Map json_)
: this(
defaultRouteAction: json_.containsKey('defaultRouteAction')
? HttpRouteAction.fromJson(json_['defaultRouteAction']
as core.Map<core.String, core.dynamic>)
: null,
defaultService: json_.containsKey('defaultService')
? json_['defaultService'] as core.String
: null,
defaultUrlRedirect: json_.containsKey('defaultUrlRedirect')
? HttpRedirectAction.fromJson(json_['defaultUrlRedirect']
as core.Map<core.String, core.dynamic>)
: null,
description: json_.containsKey('description')
? json_['description'] as core.String
: null,
headerAction: json_.containsKey('headerAction')
? HttpHeaderAction.fromJson(
json_['headerAction'] as core.Map<core.String, core.dynamic>)
: null,
name: json_.containsKey('name') ? json_['name'] as core.String : null,
pathRules: json_.containsKey('pathRules')
? (json_['pathRules'] as core.List)
.map((value) => PathRule.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
routeRules: json_.containsKey('routeRules')
? (json_['routeRules'] as core.List)
.map((value) => HttpRouteRule.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
);