def _populate(self, json):
from .volume import Volume<EOL>DerivedBase._populate(self, json)<EOL>devices = {}<EOL>for device_index, device in json['<STR_LIT>'].items():<EOL><INDENT>if not device:<EOL><INDENT>devices[device_index] = None<EOL>continue<EOL><DEDENT>dev = None<EOL>if '<STR_LIT>' in device and device['<STR_LIT>']: <EOL><INDENT>dev = Disk.make_instance(device['<STR_LIT>'], self._client,<EOL>parent_id=self.linode_id)<EOL><DEDENT>else:<EOL><INDENT>dev = Volume.make_instance(device['<STR_LIT>'], self._client,<EOL>parent_id=self.linode_id)<EOL><DEDENT>devices[device_index] = dev<EOL><DEDENT>self._set('<STR_LIT>', MappedObject(**devices))<EOL>
Map devices more nicely while populating.