toArgMap method

Map<String, Object?> toArgMap()

Implementation

Map<String, Object?> toArgMap() => {
  if (requestMethod != null) 'request_method': requestMethod!.terraformValue,
  if (contentType != null) 'content_type': contentType!.terraformValue,
  if (customContentType != null)
    'custom_content_type': customContentType!.toTfJson(),
  if (port != null) 'port': port!.toTfJson(),
  if (path != null) 'path': path!.toTfJson(),
  if (useSsl != null) 'use_ssl': useSsl!.toTfJson(),
  if (validateSsl != null) 'validate_ssl': validateSsl!.toTfJson(),
  if (maskHeaders != null) 'mask_headers': maskHeaders!.toTfJson(),
  if (headers != null) 'headers': headers,
  if (body != null) 'body': body!.toTfJson(),
  if (authInfo != null) 'auth_info': [authInfo!.toArgMap()],
  if (serviceAgentAuthentication != null)
    'service_agent_authentication': [serviceAgentAuthentication!.toArgMap()],
  if (acceptedResponseStatusCodes != null)
    'accepted_response_status_codes': acceptedResponseStatusCodes!
        .map((s) => s.toArgMap())
        .toList(),
  if (pingConfig != null) 'ping_config': [pingConfig!.toArgMap()],
};