AngelHttpException.fromMap constructor

AngelHttpException.fromMap(
  1. Map data
)

Implementation

factory AngelHttpException.fromMap(Map data) {
  return new AngelHttpException(
    null,
    statusCode: (data['status_code'] ?? data['statusCode']) as int,
    message: data['message']?.toString(),
    errors: data['errors'] is Iterable
        ? ((data['errors'] as Iterable).map((x) => x.toString()).toList())
        : <String>[],
  );
}