HttpTarget.fromJson constructor

HttpTarget.fromJson(
  1. Map json_
)

Implementation

HttpTarget.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,
        uri: json_.containsKey('uri') ? json_['uri'] as core.String : null,
      );