ApiException constructor

ApiException({
  1. required int code,
  2. required String message,
  3. dynamic data,
})

Creates an ApiException with the given code, message, and optional data.

Implementation

ApiException({required this.code, required this.message, this.data});