HttpRedirectAction.fromJson constructor

HttpRedirectAction.fromJson(
  1. Map json_
)

Implementation

HttpRedirectAction.fromJson(core.Map json_)
    : this(
        hostRedirect: json_.containsKey('hostRedirect')
            ? json_['hostRedirect'] as core.String
            : null,
        httpsRedirect: json_.containsKey('httpsRedirect')
            ? json_['httpsRedirect'] as core.bool
            : null,
        pathRedirect: json_.containsKey('pathRedirect')
            ? json_['pathRedirect'] as core.String
            : null,
        prefixRedirect: json_.containsKey('prefixRedirect')
            ? json_['prefixRedirect'] as core.String
            : null,
        redirectResponseCode: json_.containsKey('redirectResponseCode')
            ? json_['redirectResponseCode'] as core.String
            : null,
        stripQuery: json_.containsKey('stripQuery')
            ? json_['stripQuery'] as core.bool
            : null,
      );