mirrored_repositories/unsplash-API-testing/unsplash_api_test/lib
import 'package:dio/dio.dart';

class DioService {
  DioService._();

  /// Get Method
  static Future<dynamic> getURL(String url) async {
    Dio dio = Dio();
    dio.options.headers['content-Type'] = 'application/json';
    return await dio
        .get(url,
            options: Options(responseType: ResponseType.json, method: 'GET'))
        .then((response) {
      return response;
    });
  }
}
