Use class method only for from_representation