module OnebusawaySDK::Internal::Util

def coerce_hash!(input)

Returns:
  • (Hash{Object=>Object}, nil) -

Raises:
  • (ArgumentError) -

Parameters:
  • input (Object) --

Other tags:
    Api: - private
def coerce_hash!(input)
  case coerce_hash(input)
  in Hash | nil => coerced
    coerced
  else
    message = "Expected a #{Hash} or #{OnebusawaySDK::Internal::Type::BaseModel}, got #{data.inspect}"
    raise ArgumentError.new(message)
  end
end