toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
  if (acceptedResponseStatusCodes != null)
    'acceptedResponseStatusCodes': acceptedResponseStatusCodes!,
  if (authInfo != null) 'authInfo': authInfo!,
  if (body != null) 'body': body!,
  if (contentType != null) 'contentType': contentType!,
  if (customContentType != null) 'customContentType': customContentType!,
  if (headers != null) 'headers': headers!,
  if (maskHeaders != null) 'maskHeaders': maskHeaders!,
  if (path != null) 'path': path!,
  if (pingConfig != null) 'pingConfig': pingConfig!,
  if (port != null) 'port': port!,
  if (requestMethod != null) 'requestMethod': requestMethod!,
  if (serviceAgentAuthentication != null)
    'serviceAgentAuthentication': serviceAgentAuthentication!,
  if (useSsl != null) 'useSsl': useSsl!,
  if (validateSsl != null) 'validateSsl': validateSsl!,
};