@classmethod<EOL><INDENT>def from_model(cls, model, *, develop: bool = False):<DEDENT>
<EOL>return cls(<EOL>name=model.package_name, version=model.package_version, develop=develop, index=Source(url=model.index)<EOL>)<EOL>
Convert database model representation to object representation.