toJson method

Map<String, dynamic> toJson()

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;
}