def get_method_contents(self, method):
if self._CONDITIONAL_IF in method:<EOL><INDENT>return method[self._CONDITIONAL_IF][<NUM_LIT:1>:]<EOL><DEDENT>return [method]<EOL>
Returns the swagger contents of the given method. This checks to see if a conditional block
has been used inside of the method, and, if so, returns the method contents that are
inside of the conditional.

:param dict method: method dictionary
:return: list of swagger component dictionaries for the method