GrpcRouteRouteAction.fromJson constructor

GrpcRouteRouteAction.fromJson(
  1. Map json_
)

Implementation

GrpcRouteRouteAction.fromJson(core.Map json_)
    : this(
        destinations: json_.containsKey('destinations')
            ? (json_['destinations'] as core.List)
                .map((value) => GrpcRouteDestination.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        faultInjectionPolicy: json_.containsKey('faultInjectionPolicy')
            ? GrpcRouteFaultInjectionPolicy.fromJson(
                json_['faultInjectionPolicy']
                    as core.Map<core.String, core.dynamic>)
            : null,
        idleTimeout: json_.containsKey('idleTimeout')
            ? json_['idleTimeout'] as core.String
            : null,
        retryPolicy: json_.containsKey('retryPolicy')
            ? GrpcRouteRetryPolicy.fromJson(
                json_['retryPolicy'] as core.Map<core.String, core.dynamic>)
            : null,
        statefulSessionAffinity: json_.containsKey('statefulSessionAffinity')
            ? GrpcRouteStatefulSessionAffinityPolicy.fromJson(
                json_['statefulSessionAffinity']
                    as core.Map<core.String, core.dynamic>)
            : null,
        timeout: json_.containsKey('timeout')
            ? json_['timeout'] as core.String
            : null,
      );