'Parse dict from to_dict.'

@staticmethod
def from_dict(dictionary):

    if ('versions' in dictionary):
        return VersionList(dictionary['versions'])
    elif ('version' in dictionary):
        return VersionList([dictionary['version']])
    else:
        raise ValueError("Dict    must    have    'version'    or    'versions'    in    it.")
