toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
if (this.authorization != null) {
json[r'authorization'] = this.authorization;
} else {
json[r'authorization'] = null;
}
if (this.basicAuth != null) {
json[r'basic_auth'] = this.basicAuth;
} else {
json[r'basic_auth'] = null;
}
if (this.bearerToken != null) {
json[r'bearer_token'] = this.bearerToken;
} else {
json[r'bearer_token'] = null;
}
if (this.bearerTokenFile != null) {
json[r'bearer_token_file'] = this.bearerTokenFile;
} else {
json[r'bearer_token_file'] = null;
}
if (this.enableHttp2 != null) {
json[r'enable_http2'] = this.enableHttp2;
} else {
json[r'enable_http2'] = null;
}
if (this.followRedirects != null) {
json[r'follow_redirects'] = this.followRedirects;
} else {
json[r'follow_redirects'] = null;
}
if (this.httpHeaders != null) {
json[r'http_headers'] = this.httpHeaders;
} else {
json[r'http_headers'] = null;
}
if (this.noProxy != null) {
json[r'no_proxy'] = this.noProxy;
} else {
json[r'no_proxy'] = null;
}
if (this.oauth2 != null) {
json[r'oauth2'] = this.oauth2;
} else {
json[r'oauth2'] = null;
}
json[r'proxy_connect_header'] = this.proxyConnectHeader;
if (this.proxyFromEnvironment != null) {
json[r'proxy_from_environment'] = this.proxyFromEnvironment;
} else {
json[r'proxy_from_environment'] = null;
}
if (this.proxyUrl != null) {
json[r'proxy_url'] = this.proxyUrl;
} else {
json[r'proxy_url'] = null;
}
if (this.tlsConfig != null) {
json[r'tls_config'] = this.tlsConfig;
} else {
json[r'tls_config'] = null;
}
return json;
}