searchDashboardConfig method

Future<String> searchDashboardConfig(
  1. String apiEndPoint,
  2. Map body
)

Implementation

Future<String> searchDashboardConfig(
  String apiEndPoint,
  Map body,
) async {
  try {
    final response = await _client.post(apiEndPoint, data: body);

    final appCon = jsonEncode(response.data);

    return appCon;
  } on DioException catch (e) {
    AppLogger.instance.error(
      title: 'MDMS Repository',
      message: '$e',
      stackTrace: e.stackTrace,
    );
    rethrow;
  }
}