HttpRequest.fromJson constructor

HttpRequest.fromJson(
  1. Map json_
)

Implementation

HttpRequest.fromJson(core.Map json_)
    : this(
        body: json_.containsKey('body') ? json_['body'] as core.String : null,
        headers: json_.containsKey('headers')
            ? (json_['headers'] as core.Map<core.String, core.dynamic>).map(
                (key, value) => core.MapEntry(
                  key,
                  value as core.String,
                ),
              )
            : null,
        httpMethod: json_.containsKey('httpMethod')
            ? json_['httpMethod'] as core.String
            : null,
        oauthToken: json_.containsKey('oauthToken')
            ? OAuthToken.fromJson(
                json_['oauthToken'] as core.Map<core.String, core.dynamic>)
            : null,
        oidcToken: json_.containsKey('oidcToken')
            ? OidcToken.fromJson(
                json_['oidcToken'] as core.Map<core.String, core.dynamic>)
            : null,
        url: json_.containsKey('url') ? json_['url'] as core.String : null,
      );