GalileoHttpException.fromMap constructor Null safety

GalileoHttpException.fromMap(
  1. Map data
)

Implementation

factory GalileoHttpException.fromMap(Map data) {
  return GalileoHttpException(
    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>[],
  );
}