A Maxwellian model for pseudoelastic materials