@classmethod
def from_json(cls, val):
    """ Create a remote file from JSON

        Args:
            val (:obj:`dict`)

        Returns:
            :obj:`RemoteFile`
        """
    return cls(name=val.get('name', None), type=val.get('type', None), size
        =val.get('size', None))
