HttpHeaderAction.fromJson constructor

HttpHeaderAction.fromJson(
  1. Map json_
)

Implementation

HttpHeaderAction.fromJson(core.Map json_)
    : this(
        requestHeadersToAdd: json_.containsKey('requestHeadersToAdd')
            ? (json_['requestHeadersToAdd'] as core.List)
                .map((value) => HttpHeaderOption.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        requestHeadersToRemove: json_.containsKey('requestHeadersToRemove')
            ? (json_['requestHeadersToRemove'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        responseHeadersToAdd: json_.containsKey('responseHeadersToAdd')
            ? (json_['responseHeadersToAdd'] as core.List)
                .map((value) => HttpHeaderOption.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        responseHeadersToRemove: json_.containsKey('responseHeadersToRemove')
            ? (json_['responseHeadersToRemove'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
      );