HttpRouteRouteAction.fromJson constructor

HttpRouteRouteAction.fromJson(
  1. Map json_
)

Implementation

HttpRouteRouteAction.fromJson(core.Map json_)
    : this(
        corsPolicy: json_.containsKey('corsPolicy')
            ? HttpRouteCorsPolicy.fromJson(
                json_['corsPolicy'] as core.Map<core.String, core.dynamic>)
            : null,
        destinations: json_.containsKey('destinations')
            ? (json_['destinations'] as core.List)
                .map((value) => HttpRouteDestination.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        directResponse: json_.containsKey('directResponse')
            ? HttpRouteHttpDirectResponse.fromJson(json_['directResponse']
                as core.Map<core.String, core.dynamic>)
            : null,
        faultInjectionPolicy: json_.containsKey('faultInjectionPolicy')
            ? HttpRouteFaultInjectionPolicy.fromJson(
                json_['faultInjectionPolicy']
                    as core.Map<core.String, core.dynamic>)
            : null,
        idleTimeout: json_.containsKey('idleTimeout')
            ? json_['idleTimeout'] as core.String
            : null,
        redirect: json_.containsKey('redirect')
            ? HttpRouteRedirect.fromJson(
                json_['redirect'] as core.Map<core.String, core.dynamic>)
            : null,
        requestHeaderModifier: json_.containsKey('requestHeaderModifier')
            ? HttpRouteHeaderModifier.fromJson(json_['requestHeaderModifier']
                as core.Map<core.String, core.dynamic>)
            : null,
        requestMirrorPolicy: json_.containsKey('requestMirrorPolicy')
            ? HttpRouteRequestMirrorPolicy.fromJson(
                json_['requestMirrorPolicy']
                    as core.Map<core.String, core.dynamic>)
            : null,
        responseHeaderModifier: json_.containsKey('responseHeaderModifier')
            ? HttpRouteHeaderModifier.fromJson(json_['responseHeaderModifier']
                as core.Map<core.String, core.dynamic>)
            : null,
        retryPolicy: json_.containsKey('retryPolicy')
            ? HttpRouteRetryPolicy.fromJson(
                json_['retryPolicy'] as core.Map<core.String, core.dynamic>)
            : null,
        statefulSessionAffinity: json_.containsKey('statefulSessionAffinity')
            ? HttpRouteStatefulSessionAffinityPolicy.fromJson(
                json_['statefulSessionAffinity']
                    as core.Map<core.String, core.dynamic>)
            : null,
        timeout: json_.containsKey('timeout')
            ? json_['timeout'] as core.String
            : null,
        urlRewrite: json_.containsKey('urlRewrite')
            ? HttpRouteURLRewrite.fromJson(
                json_['urlRewrite'] as core.Map<core.String, core.dynamic>)
            : null,
      );