toJson method
Implementation
Map<String, dynamic> toJson() {
final out = <String, dynamic>{
'code': code.wire,
'message': message,
'recoverable': recoverable,
};
if (httpStatus != null) out['httpStatus'] = httpStatus;
if (attempt != null) out['attempt'] = attempt;
return out;
}