def to_OrderedDict(self, include_null=True):
if include_null:<EOL><INDENT>return OrderedDict(self.items())<EOL><DEDENT>else:<EOL><INDENT>items = list()<EOL>for c in self.__table__._columns:<EOL><INDENT>try:<EOL><INDENT>items.append((c.name, self.__dict__[c.name]))<EOL><DEDENT>except KeyError:<EOL><INDENT>pass<EOL><DEDENT><DEDENT>return OrderedDict(items)<EOL><DEDENT>
Convert to OrderedDict.

:rtype: OrderedDict