'Given a JSON representation of the models in a graph and new model objects,
set the properties on the models from the JSON'

@classmethod
def _initialize_references_json(cls, references_json, references, setter=None):

    for obj in references_json:
        obj_id = obj['id']
        obj_attrs = obj['attributes']
        instance = references[obj_id]
        instance.update_from_json(obj_attrs, models=references, setter=setter)
