'Migrate a v1 JSON configuration to v2.
:param bytes config: The v1 JSON data.
:return bytes: The v2 JSON data.'

@classmethod
def upgrade_from_v1(cls, config):

    v1_config = loads(config)
    v2_config = {_CLASS_MARKER: u'Configuration', u'version': 2, u'deployment': v1_config}
    return dumps(v2_config)
