toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (corsPolicy != null) 'corsPolicy': corsPolicy!,
      if (destinations != null) 'destinations': destinations!,
      if (directResponse != null) 'directResponse': directResponse!,
      if (faultInjectionPolicy != null)
        'faultInjectionPolicy': faultInjectionPolicy!,
      if (idleTimeout != null) 'idleTimeout': idleTimeout!,
      if (redirect != null) 'redirect': redirect!,
      if (requestHeaderModifier != null)
        'requestHeaderModifier': requestHeaderModifier!,
      if (requestMirrorPolicy != null)
        'requestMirrorPolicy': requestMirrorPolicy!,
      if (responseHeaderModifier != null)
        'responseHeaderModifier': responseHeaderModifier!,
      if (retryPolicy != null) 'retryPolicy': retryPolicy!,
      if (statefulSessionAffinity != null)
        'statefulSessionAffinity': statefulSessionAffinity!,
      if (timeout != null) 'timeout': timeout!,
      if (urlRewrite != null) 'urlRewrite': urlRewrite!,
    };