Create a model output object from a dictionary.

def from_dict(doc):
        """Create a model output object from a dictionary.

        """
        return ModelOutputs(
            ModelOutputFile.from_dict(doc['prediction']),
            [ModelOutputFile.from_dict(a) for a in doc['attachments']]
        )