def METHOD_NAME(cls, struct=None, fields=None, deprecated_fields: dict = None):
    new_obj = cls()
    new_obj._metadata = mlrun.model.VersionedObjMetadata().from_dict(
        struct=struct, fields=fields, deprecated_fields=deprecated_fields
    )
    new_obj._status = ModelEndpointStatus().from_dict(
        struct=struct, fields=fields, deprecated_fields=deprecated_fields
    )
    new_obj._spec = ModelEndpointSpec().from_dict(
        struct=struct, fields=fields, deprecated_fields=deprecated_fields
    )
    return new_obj