When the machine refuses to pay his lawyer, who does the lawyer name as the defendant?
Whilst there's no reason a machine couldn't be a legal person, in the sense that the sentence describes a possible future, that future is not near, and it will take more than a competent robolawyer to bring it about.