decodesErrors property

bool get decodesErrors

Whether this decoder also runs on 4xx/5xx response bodies.

Closure decoders never see error bodies, so a User.fromJson is not handed a validation error. Return true to receive them.

Implementation

bool get decodesErrors => false;