Current File : /home/tradevaly/www/fresh/lib/data/model/response/base/api_response.dart
import 'package:dio/dio.dart';

class ApiResponse {
  final Response response;
  final dynamic error;

  ApiResponse(this.response, this.error);

  ApiResponse.withError(dynamic errorValue)
      : response = null,
        error = errorValue;

  ApiResponse.withSuccess(Response responseValue)
      : response = responseValue,
        error = null;
}